/* assets/css/style.css */
:root {
    --primary: #009b4c;
    /* Deep Maroon */
    --primary-dark: #009b4c;
    --accent: #131516;
    /* Gold */
    --accent-hover: #009b4c;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
    --header-height: 70px;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Premium Layout Elements */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background: linear-gradient(90deg, var(--primary) 0%, #014e23 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    text-align: right;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: var(--light);
    display: block;
}

.user-role {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Sidebar */
.app-container {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    height: calc(100vh - var(--header-height));
    position: fixed;
    overflow-y: auto;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.sidebar-menu,
.sidebar ul {
    list-style: none;
}

.sidebar-menu li,
.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a,
.sidebar ul a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    color: #666;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active,
.sidebar ul a:hover,
.sidebar ul a.active {
    background: rgba(128, 0, 0, 0.05);
    color: var(--primary);
}

.sidebar-menu a.active,
.sidebar ul a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.sidebar-menu i,
.sidebar ul i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: var(--primary);
    transition: color 0.3s ease;
}

.sidebar-menu a:hover i,
.sidebar ul a:hover i {
    color: var(--primary);
}

.sidebar-menu a.active i,
.sidebar ul a.active i {
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.4);
}

.btn-secondary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

select.form-control,
textarea.form-control {
    font-family: var(--font-main);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.stat-card p {
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.custom-table th,
.custom-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.custom-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.custom-table tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.custom-table tr:hover {
    background: #fff9f9;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-gold {
    color: var(--accent);
}

.text-maroon {
    color: var(--primary);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Dashboard Enhancements */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #006633 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 155, 76, 0.2);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 200px;
    height: 200px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/6/65/Logo_HMI.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    transform: translateY(-50%) rotate(10deg);
}

.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 16px;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.stat-card p {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.stat-icon-bg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.1;
    color: var(--primary);
    transform: rotate(-15deg);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.activity-feed {
    position: relative;
    padding-left: 20px;
}

.activity-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 25px;
    border-left: 2px solid #e0e0e0;
}

.activity-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.activity-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 155, 76, 0.2);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    gap: 1rem;
    height: 100%;
    color: var(--dark);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.action-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.action-card:hover i {
    transform: scale(1.1);
}

.action-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: inherit;
}