* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 40px 20px 30px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.8rem;
    color: #58a6ff;
    font-weight: 600;
    margin-bottom: 8px;
}

.tabs {
    display: flex;
    background-color: #161b22;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #30363d;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #8b949e;
    padding: 18px 20px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-btn:hover {
    color: #f0f6fc;
    background-color: rgba(88, 166, 255, 0.08);
}

.tab-btn.active {
    color: #f0f6fc;
    background-color: rgba(88, 166, 255, 0.15);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #58a6ff;
}

.content {
    background-color: #161b22;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    flex-grow: 1;
    border: 1px solid #30363d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    color: #f0f6fc;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #30363d;
}

.card {
    background-color: #21262d;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
    border: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.05);
}

.card-content {
    flex-grow: 1;
}

.card h3 {
    margin-bottom: 6px;
    color: #f0f6fc;
    font-size: 1.25rem;
    font-weight: 500;
}

.card p {
    color: #8b949e;
    margin-bottom: 0;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    background-color: #58A6FF;
    color: white;
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn:hover {
    background-color: #2ea043;
    transform: translateY(-1px);
}

.links {
    margin-top: 25px;
}

.link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #21262d;
    color: #58a6ff;
    padding: 18px 22px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
}

.link:hover {
    background-color: rgba(88, 166, 255, 0.05);
    border-color: #58a6ff;
}

.link-text {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-weight: 500;
}

.link-arrow {
    color: #8b949e;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.link:hover .link-arrow {
    transform: translateX(4px);
    color: #58a6ff;
}

.guide-item {
    background-color: #21262d;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
}

.guide-item:hover {
    border-color: #58a6ff;
}

.guide-item h3 {
    color: #58a6ff;
    margin-bottom: 18px;
    font-size: 1.25rem;
    font-weight: 600;
}

.guide-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-link {
    display: block;
    background-color: #161b22;
    color: #f0f6fc;
    padding: 15px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
    font-family: 'SF Mono', 'Monaco', monospace;
    word-break: break-all;
    font-size: 0.95rem;
}

.guide-link:hover {
    background-color: rgba(88, 166, 255, 0.05);
    border-color: #58a6ff;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.req-card {
    background-color: #21262d;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #30363d;
    text-align: center;
    transition: all 0.2s ease;
}

.req-card:hover {
    border-color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.05);
}

.req-card h3 {
    color: #f0f6fc;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
}

.mirror-link {
    display: inline-block;
    background-color: #58A6FF;
    color: white;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mirror-link:hover {
    background-color: #2ea043;
    transform: translateY(-1px);
}

footer {
    text-align: center;
    padding: 25px 20px;
    color: #8b949e;
    margin-top: auto;
    border-top: 1px solid #30363d;
    font-size: 0.95rem;
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 30px 15px 20px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .tabs {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 16px;
    }
    
    .content {
        padding: 25px 20px;
        border-radius: 14px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        padding: 14px;
    }
    
    .req-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .req-card {
        padding: 24px 20px;
    }
}

.card:has(div:only-child) {
    opacity: 0.7;
    position: relative;
}

.card:has(div:only-child)::after {
    content: "Not Available";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(248, 81, 73, 0.1);
    color: #f85149;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-weight: 500;
    border: 1px solid rgba(248, 81, 73, 0.2);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #161b22;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

::selection {
    background-color: rgba(88, 166, 255, 0.3);
    color: #f0f6fc;
}

:focus {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}
