* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 40px 20px;
}

.container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.content-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 14px 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #fafafa;
    border-color: #cccccc;
}

.tab-btn.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.tab-btn svg {
    flex-shrink: 0;
}

.content-area {
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
    padding: 30px;
    background: #fafafa;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 2px solid #e0e0e0;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tab-content h2 {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-content h2:first-child {
    margin-top: 0;
}

.tab-content p {
    color: #333333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.tab-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.tab-content ul li {
    color: #333333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 15px;
    color: #666666;
    margin: 0;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message svg {
    color: #ff4444;
    margin-bottom: 16px;
}

.error-message h3 {
    color: #000000;
    font-size: 18px;
    margin-bottom: 8px;
}

.error-message p {
    color: #666666;
    font-size: 14px;
    margin: 0;
}

.footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.back-btn,
.print-btn {
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    transition: all 0.3s ease;
}

.back-btn:hover,
.print-btn:hover {
    border-color: #000000;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-btn svg,
.print-btn svg {
    flex-shrink: 0;
}

.decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: 7s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .decorative-bg,
    .logo,
    .tabs,
    .footer-actions {
        display: none;
    }
    
    .content-box {
        box-shadow: none;
        padding: 20px;
    }
    
    .content-area {
        max-height: none;
        border: none;
        background: white;
        padding: 0;
    }
    
    .tab-content {
        display: block !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .content-box {
        padding: 30px 24px;
    }
    
    .tabs {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .content-area {
        padding: 20px;
        max-height: 500px;
    }
    
    .footer-actions {
        grid-template-columns: 1fr;
    }
}