/* Modern Admin Panel CSS - Minimalist Top Nav */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Soft Sage & Earthy Tones */
    --primary: #65A30D;
    /* Lime-600: Much softer/darker than previous neon */
    --primary-soft: #ECFCCB;
    /* Lime-100: Very soft pastel background */
    --primary-hover: #4D7C0F;
    /* Lime-700 */

    --bg-body: #F3F4F6;
    /* Gray-100: Slightly warmer/darker than before for less glare */
    --bg-nav: #FFFFFF;
    --bg-card: #FFFFFF;

    --text-main: #334155;
    /* Slate-700: Softer than pure black */
    --text-secondary: #64748B;
    /* Slate-500 */
    --text-light: #94A3B8;
    /* Slate-400 */

    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;

    --nav-height: 70px;
    --container-width: 1400px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: 40px;
}

.logo i {
    color: var(--primary);
    font-size: 24px;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.nav-link.active {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.nav-link i {
    font-size: 16px;
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #FF6B6B;
    border-radius: 50%;
    border: 1px solid white;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
}

.profile-btn:hover {
    border-color: var(--primary);
    background-color: var(--bg-body);
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

/* Main Content */
.main-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - var(--nav-height));
}

.page-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.page-title p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background-color: #FEE2E2;
    color: #EF4444;
}

.btn-danger:hover {
    background-color: #FEE2E2;
    color: #DC2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bg-green-soft {
    background: var(--primary-soft);
    color: var(--primary);
}

.bg-blue-soft {
    background: #E0F2FE;
    color: #0EA5E9;
}

.bg-purple-soft {
    background: #F3E8FF;
    color: #A855F7;
}

.bg-orange-soft {
    background: #FFEDD5;
    color: #F97316;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Minimal Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: #F8FAFC;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-text {
    font-size: 13px;
    font-weight: 500;
}

.text-green {
    color: var(--primary);
}

.bg-green {
    background-color: var(--primary);
}

.text-orange {
    color: #F97316;
}

.bg-orange {
    background-color: #F97316;
}

.text-red {
    color: #EF4444;
}

.bg-red {
    background-color: #EF4444;
}

.text-blue {
    color: #0EA5E9;
}

.bg-blue {
    background-color: #0EA5E9;
}

/* Activity List */
.activity-list {
    padding: 0;
}

.activity-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.activity-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-light);
    margin-left: auto;
    white-space: nowrap;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: var(--primary-soft);
    color: var(--primary-hover);
    border: 1px solid rgba(149, 193, 31, 0.2);
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

/* Notification Badge */
.notification-badge {
    background: #EF4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

.notification-badge.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        /* Hide menu on tablet/mobile */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-nav);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px;
    }

    .mobile-toggle {
        display: block;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}