* {
    box-sizing: border-box;
}

div {
    display: block;
}

body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #24292f;
    background-color: #f6f8fa;
}

.panel {
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    height: 360px;
    margin: 16px;
    padding: 24px;
    width: 380px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #0969da;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0969da, #1f883d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel:hover::before {
    opacity: 1;
}

#actionCount {
    font-weight: 600;
    color: #0969da;
    font-size: 1.1em;
}

.name {
    font-weight: 600;
    padding-right: 8px;
    color: #57606a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description {
    padding-top: 12px;
    color: #57606a;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.line {
    margin-bottom: 12px;
}

.line:first-child .value a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0969da;
    text-decoration: none;
    transition: color 0.2s ease;
}

.line:first-child .value a:hover {
    color: #0550ae;
    text-decoration: underline;
}

.line:nth-child(2) .value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #24292f;
}

.line:nth-child(3) .value {
    color: #57606a;
    font-size: 0.9rem;
}

@media screen and (min-width: 42em) and (max-width: 64em){
.page-header {
    padding: 4rem 4rem;
}}
.page-header {
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #0969da 0%, #1f883d 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5rem 2rem;
}

@media screen and (min-width: 42em) and (max-width: 64em){
.project-name {
    font-size: 2.5rem;
}}

.project-name {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
h1 {
    font-size: 2.5em;
    margin: 0.67em 0;
}

@media screen and (min-width: 42em) and (max-width: 64em){
.project-tagline {
    font-size: 1.25rem;
}}
.project-tagline {
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.2rem;
}

@media screen and (min-width: 42em) and (max-width: 64em){
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}}

.btn {
    display: inline-block;
    margin-bottom: 1rem;
    color: white;
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    border-style: solid;
    border-width: 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

a {
    color: #0969da;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 42em) and (max-width: 64em) {
.site-footer {
    font-size: 0.95rem;
}}

.site-footer {
    padding-top: 3rem;
    margin-top: 4rem;
    border-top: 2px solid #d0d7de;
    clear: both;
    text-align: center;
}

.site-footer-owner {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #24292f;
}

.site-footer-credits {
    color: #57606a;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

.main-content {
    padding: 3rem 4rem;
    font-size: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

#main {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.main-content {
    word-wrap: break-word;
}

@media screen and (max-width: 450px) {
.panel {
    max-width: 100vw;
    margin: 12px 0;
    width: 100%;
}
.main-content {
    padding: 2rem 1.5rem;
}
}

@media screen and (max-width: 400px) {
.main-content {
    padding: 2rem 1rem;
}
}

@media screen and (max-width: 370px) {
.main-content {
    padding: 1.5rem 0.5rem;
}
}

.actionInfo {
    margin-right: 32px;
    font-size: 1.1rem;
    color: #24292f;
}

.search {
    position: relative;
}

.search input {
    height: 42px;
    padding: 8px 40px 8px 16px;
    border: 2px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    width: 400px;
    transition: all 0.3s ease;
    background-color: white;
}

.search input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.search input::placeholder {
    color: #8c959f;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    color: #57606a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.search-clear:hover {
    background-color: #f6f8fa;
    color: #24292f;
}

.search-clear.visible {
    display: flex;
}

.top {
    clear: both;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #d0d7de;
}

.top > .actionInfo,
.top > .search {
    display: inline-block;
    margin-right: 32px;
    margin-bottom: 16px;
}

.top .filters-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d0d7de;
}

#lastUpdatePanel {
    margin-bottom: 24px;
    margin-top: 24px;
    clear: both;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    text-align: center;
    color: #57606a;
}

#lastUpdated {
    margin-left: 8px;
    font-weight: 600;
    color: #24292f;
}

.deployment-info {
    margin-top: 24px;
    padding: 12px 20px;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: #57606a;
}

.deployment-info strong {
    color: #24292f;
    font-weight: 600;
}

.visibility-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.visibility-badge-public {
    background-color: #dafbe1;
    color: #1a7f37;
    border: 1px solid #1f883d;
}

.visibility-badge-private {
    background-color: #fff8c5;
    color: #7d4e00;
    border: 1px solid #bf8700;
}

.visibility-badge-internal {
    background-color: #fff5b1;
    color: #7d4e00;
    border: 1px solid #d4a72c;
}

.visibility-badge-archived {
    background-color: #f0f0f0;
    color: #57606a;
    border: 1px solid #8c959f;
}

.visibility-badge-fork {
    background-color: #ddf4ff;
    color: #0969da;
    border: 1px solid #54aeff;
}

/* Detail page styles */
#detailContainer {
    max-width: 900px;
    margin: 0 auto;
}

#actionDetail {
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.detail-header {
    border-bottom: 2px solid #d0d7de;
    padding-bottom: 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #24292f;
    font-weight: 700;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: #24292f;
    font-weight: 600;
}

.detail-section p {
    margin: 0;
    color: #57606a;
    line-height: 1.6;
    font-size: 1rem;
}

.detail-loading,
.detail-error {
    text-align: center;
    padding: 48px 24px;
    color: #57606a;
    font-size: 1.1rem;
}

.detail-error {
    color: #cf222e;
}

.detail-error a {
    color: #0969da;
    text-decoration: underline;
}

.panel-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d0d7de;
}

.panel-actions a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0969da;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.panel-actions a:hover {
    background-color: #0550ae;
    text-decoration: none;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-group:last-of-type {
    margin-bottom: 16px;
}

.filter-label {
    font-weight: 600;
    color: #57606a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #f6f8fa;
    color: #24292f;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #e7edf3;
    border-color: #0969da;
}

.filter-btn.active {
    background-color: #0969da;
    color: white;
    border-color: #0969da;
}

.filter-btn .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-btn.active .count {
    background-color: rgba(255, 255, 255, 0.25);
}

.filter-btn-clear {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #cf222e;
    border: 1px solid #cf222e;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn-clear:hover {
    background-color: #cf222e;
    color: white;
}

@media screen and (max-width: 768px) {
    .top {
        padding: 16px;
    }
    
    .top > .actionInfo,
    .top > .search {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .search input {
        width: 100%;
    }
    
    .filter-group {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .filter-label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .filter-btn-clear {
        width: 100%;
        margin-top: 8px;
    }
}

/* README section styles */
.readme-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #d0d7de;
}

.readme-content {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 24px;
    margin-top: 16px;
    overflow-x: auto;
    line-height: 1.6;
    color: #24292f;
}

.readme-content h1 {
    font-size: 1.8rem;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d0d7de;
    color: #24292f;
}

.readme-content h2 {
    font-size: 1.5rem;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d0d7de;
    color: #24292f;
}

.readme-content h3 {
    font-size: 1.25rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #24292f;
}

.readme-content p {
    margin: 12px 0;
    color: #57606a;
}

.readme-content a {
    color: #0969da;
    text-decoration: none;
}

.readme-content a:hover {
    text-decoration: underline;
}

.readme-content code {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9em;
    color: #24292f;
}

.readme-content pre {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.readme-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    display: block;
}

.readme-content strong {
    font-weight: 600;
    color: #24292f;
}

.readme-content em {
    font-style: italic;
}

.readme-error {
    color: #cf222e;
    font-style: italic;
}