/*
 * Zaad Alkhair - Custom Web Design & Stylesheet
 * Inspired by the project logo (Green, Leaf, Gold Hand, Sustainability)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-green: #1b4d3e;     /* Deep forest green from the logo container */
    --accent-green: #3a7d44;      /* Lighter leaf green from the logo leaves */
    --primary-gold: #c29a53;      /* Warm gold from the cradling hand */
    --secondary-gold: #e2b96d;    /* Bright gold accent */
    --light-cream: #fdfaf6;       /* Warm background color */
    --dark-slate: #2b2d42;        /* High-contrast text color */
    --light-slate: #8d99ae;       /* Light neutral text color */
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 12px 40px rgba(27, 77, 62, 0.1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-cream);
    color: var(--dark-slate);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography settings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-green);
}

/* Glassmorphism Navigation Bar */
.navbar-custom {
    background: rgba(27, 77, 62, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary-gold);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.navbar-brand img {
    height: 48px;
    transition: var(--transition-smooth);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 16px !important;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    margin: 0 3px;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #fff !important;
    background: rgba(194, 154, 83, 0.2);
    transform: translateY(-1px);
}

.nav-btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-green) !important;
    font-weight: 600;
    border: 2px solid var(--primary-gold);
}

.nav-btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #113127 100%);
    color: #fff;
    padding: 100px 0 140px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--light-cream);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-subtitle {
    color: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Buttons Styling */
.btn-gold-custom {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #a98246 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(194, 154, 83, 0.4);
    transition: var(--transition-smooth);
}

.btn-gold-custom:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(194, 154, 83, 0.6);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-green-custom {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
    transition: var(--transition-smooth);
}

.btn-green-custom:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.5);
}

/* Modern Cards */
.card-custom {
    background-color: #fff;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(194, 154, 83, 0.1);
    color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.card-custom:hover .card-icon-wrapper {
    background: var(--primary-green);
    color: #fff;
    transform: rotateY(180deg);
}

/* Timeline of How it works */
.timeline-item {
    position: relative;
    padding-left: 40px;
    border-left: 2px dashed var(--primary-gold);
    margin-bottom: 30px;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-number {
    position: absolute;
    left: -16px;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-green);
    color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Dashboard Layout */
.dashboard-container {
    padding: 40px 0;
    flex-grow: 1;
}

.dashboard-sidebar {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--dark-slate);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.sidebar-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--primary-gold);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-green);
    color: #fff;
}

.sidebar-link:hover i, .sidebar-link.active i {
    color: var(--primary-gold);
}

/* Stats Widgets */
.widget-card {
    border-radius: var(--border-radius-md);
    padding: 20px;
    background-color: #fff;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-card.gold-edge {
    border-left-color: var(--primary-gold);
}

.widget-card.blue-edge {
    border-left-color: #3f51b5;
}

.widget-card.red-edge {
    border-left-color: #e91e63;
}

.widget-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.widget-title {
    font-size: 0.9rem;
    color: var(--light-slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Elegant Table Design */
.table-responsive-custom {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    padding: 10px;
}

.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    background-color: var(--light-cream);
    color: var(--primary-green);
    font-weight: 600;
    border-top: none;
    border-bottom: 2px solid rgba(27, 77, 62, 0.1);
    padding: 15px;
}

.table-custom td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Badges */
.badge-custom {
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-available { background-color: rgba(58, 125, 68, 0.1); color: var(--accent-green); }
.badge-requested { background-color: rgba(194, 154, 83, 0.15); color: #d09427; }
.badge-approved { background-color: rgba(63, 81, 181, 0.1); color: #3f51b5; }
.badge-completed { background-color: rgba(27, 77, 62, 0.1); color: var(--primary-green); }
.badge-expired { background-color: rgba(244, 67, 54, 0.1); color: #f44336; }
.badge-cancelled { background-color: rgba(120, 120, 120, 0.1); color: #787878; }

/* Elegant Forms */
.form-control-custom {
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--light-cream);
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(194, 154, 83, 0.15);
    background-color: #fff;
}

.form-label-custom {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
}

/* Notifications Dropdown & list */
.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.notification-item:hover {
    background-color: var(--light-cream);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--light-slate);
    margin-top: 4px;
}

/* Footer Style */
.footer-custom {
    background-color: var(--primary-green);
    border-top: 5px solid var(--primary-gold);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

.footer-custom h5 {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--primary-gold);
    transform: translateX(4px);
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
}

/* Auth Cards */
.auth-container {
    margin: 60px auto;
    max-width: 550px;
}

.auth-header {
    background-color: var(--primary-green);
    color: #fff;
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: 4px solid var(--primary-gold);
}

.auth-header img {
    height: 80px;
    margin-bottom: 15px;
}

.auth-body {
    background-color: #fff;
    padding: 40px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

/* Empty State Card */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-section {
        padding: 60px 0 100px 0;
    }
    .dashboard-sidebar {
        margin-bottom: 25px;
    }
}

/* Fixed Dashboard Layout Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.dashboard-sidebar-fixed {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-green) 0%, #113127 100%);
    border-right: 3px solid var(--primary-gold);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    overflow-y: auto;
    transition: var(--transition-smooth);
}

.dashboard-sidebar-fixed .sidebar-link {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
    font-weight: 500;
}

.dashboard-sidebar-fixed .sidebar-link:hover, 
.dashboard-sidebar-fixed .sidebar-link.active {
    background-color: rgba(194, 154, 83, 0.15) !important;
    color: #fff !important;
    transform: translateX(4px);
}

.dashboard-sidebar-fixed .sidebar-link.active {
    border-left: 4px solid var(--primary-gold);
    background-color: rgba(194, 154, 83, 0.25) !important;
}

.dashboard-sidebar-fixed .sidebar-link i {
    color: var(--primary-gold);
    font-size: 1.25rem;
    width: 24px;
}

.dashboard-content-wrapper {
    flex-grow: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    background-color: var(--light-cream);
    min-height: 100vh;
    min-width: 0; /* Prevents flexbox items from overflowing */
    transition: var(--transition-smooth);
}

.dashboard-topbar {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.dashboard-topbar-brand img {
    height: 40px;
}

/* Adjustments for responsive sidebars */
@media (max-width: 991.98px) {
    .dashboard-sidebar-fixed {
        transform: translateX(-100%);
    }
    .dashboard-sidebar-fixed.show {
        transform: translateX(0);
    }
    .dashboard-content-wrapper {
        margin-left: 0;
    }
}

/* Topbar Icon Buttons (Waaha style) */
.btn-topbar-icon {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-slate);
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 0;
}
.btn-topbar-icon:hover {
    background-color: var(--light-cream);
    color: var(--primary-green) !important;
    border-color: var(--primary-green);
    transform: translateY(-2px);
}
.btn-topbar-icon::after {
    display: none !important;
}

/* Sidebar category headers (Waaha style) */
.sidebar-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-left: 10px;
}

/* Mobile Offcanvas Nav menu styles (matching green/gold theme) */
.mobile-nav-item {
    margin: 4px 0;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
}
.mobile-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}
.mobile-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
}
.mobile-nav-link:hover i {
    color: var(--secondary-gold);
}
.mobile-nav-link.active {
    color: white !important;
    background: rgba(194, 154, 83, 0.2) !important;
    border-left: 4px solid var(--primary-gold);
    font-weight: 600;
}
.mobile-nav-link.active i {
    color: var(--secondary-gold);
}

