:root {
    --primary-color: #6d9bff;
    --primary-dark: #5b85fa;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #6780f1 0%, #398be9 100%);
    --gradient-secondary: linear-gradient(135deg, #9593fb 0%, #6f57f5 100%);
    --gradient-success: linear-gradient(135deg, #78b6ec 0%, #46acff 100%);
    --gradient-success2: linear-gradient(135deg, #0878da 0%, #008cfe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: var(--gray-800);
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    max-width: 100%;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Section */
.header-section {
    background: rgb(232, 232, 233);
    color: rgb(61, 61, 61);
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Navigation Tabs */
.nav-tabs {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 0 2rem;
    margin: 0;
}

.nav-tabs .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem 1.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: var(--gray-100);
    transform: translateY(-2px);
}

.nav-tabs .nav-link:hover::before,
.nav-tabs .nav-link.active::before {
    width: 100%;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: var(--gray-100);
    font-weight: 600;
}

.nav-tabs .nav-link img {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.nav-tabs .nav-link:hover img,
.nav-tabs .nav-link.active img {
    filter: none;
}

/* Tab Content */
.tab-content {
    background: var(--white);
    padding: 2rem 1.5rem;
    min-height: 500px;
}

.tab-pane {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Components */
.modern-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header-modern {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.card-header-modern h4 {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.card-body-modern {
    padding: 2rem 1.5rem;
}

/* Form Styles */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success2 {
    background: var(--gradient-success2);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Input Groups */
.input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-group-text {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.input-group .form-control {
    border: none;
    box-shadow: none;
}

.input-group .btn {
    border-radius: 0;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    color: #0277bd;
}



@keyframes modalSlideIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.close-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--danger-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.close-container:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.close-icon {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Search Section */
.search-container {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        margin: 0.5rem;
    }
    
    .header-section {
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1.5rem 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .modal {
        width: 95%;
        margin: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .card-body-modern {
        padding: 1.5rem 1rem;
    }

    .header-logo {
        max-width: 200px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* iframe Responsive */
.iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}