:root {
    --primary-color: #CC0000;
    --primary-dark: #8B0000;
    --primary-light: #FF5555;
    --accent-color: #FFD700;
    --bg-light: #fff5f5;
    --bg-gradient: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    --shadow-color: rgba(204, 0, 0, 0.15);
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --border-color: rgba(204, 0, 0, 0.1);
    --card-radius: 20px;
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    background: var(--bg-gradient);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background-color: white;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.6rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.main-container {
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
}

.content-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 15px 35px var(--shadow-color);
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.system-title i {
    font-size: 2.2rem;
}

.card-body {
    padding: 2rem;
}

.welcome-message {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.welcome-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.welcome-text {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 15px;
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.admin-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-icon {
    font-size: 1.6rem;
    color: white;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.admin-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
}

.admin-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-badge {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.admin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--accent-color);
}

.admin-item:hover .admin-badge {
    background: var(--primary-color);
    color: white;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
}

.card-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px var(--shadow-color);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .card-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .system-title {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}