/* --- Variables & Clean Corporate Theme --- */
:root {
    /* Backgrounds */
    --bg-body: #f3f4f6;       /* Light Gray Background */
    --bg-sidebar: #ffffff;    /* White Sidebar */
    --card-bg: #ffffff;       /* White Cards */
    
    /* Text */
    --text-main: #111827;     /* Near Black */
    --text-muted: #6b7280;    /* Gray 500 */
    
    /* Accents (Professional Royal Blue) */
    --accent-primary: #2563eb; /* Royal Blue */
    --accent-dark: #1e40af;    /* Darker Blue */
    --accent-teal: #0d9488;    /* Professional Teal */
    --accent-purple: #7c3aed;  /* Deep Purple */
    
    /* Borders & Shadows */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 70px;
}

/* --- Global Layout --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

/* Custom Scrollbar (Subtle Gray) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* --- Sidebar Styling (Clean White) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    transition: width 0.3s ease;
    position: relative;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    z-index: 20;
}

.sidebar.collapsed { width: var(--sidebar-width-collapsed); }

/* Toggle Button */
.toggle-btn {
    position: absolute;
    top: 24px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all 0.2s;
}

.toggle-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.sidebar.collapsed .toggle-btn { transform: rotate(180deg); }

/* Hiding Elements on Collapse */
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .profile-text {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.sidebar.collapsed .nav-link { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .nav-link i { margin-right: 0; font-size: 1.2rem; }
.sidebar.collapsed .logo-container { justify-content: center; padding-left: 0 !important; }

/* Navigation Links */
.nav-link {
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 6px;
    margin: 4px 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #f8fafc;
    color: var(--accent-primary);
}

.nav-link.active {
    background-color: #eff6ff; /* Very Light Blue */
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-link i { width: 24px; text-align: center; margin-right: 12px; transition: margin 0.3s; }

/* User Profile */
.user-profile {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: auto;
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2.5rem 3rem;
}

/* --- Dashboard Specifics --- */
.text-highlight {
    color: var(--accent-primary);
}

/* Professional Cards (White with subtle shadow) */
.custom-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    text-decoration: none;
    display: block;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: #bfdbfe; /* Light Blue Border */
}

/* Icon Boxes */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: white; /* Icon itself is white */
}

/* Steps Section */
.steps-container {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-circle {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    position: relative;
}

.step-line {
    position: absolute;
    top: 40px; /* Aligns with middle of circle */
    left: 12%;
    right: 12%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.toggle-btn {
    position: absolute;
    top: 20px;
    right: -16px; /* Moved slightly more right to center on border */
    width: 32px;  /* Increased from 24px */
    height: 32px; /* Increased from 24px */
    background: var(--bg-sidebar); /* Or var(--accent-primary) if you want it colored */
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Increased from 10px/12px */
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 100; /* Ensure it stays above everything */
    transition: all 0.2s;
}

.toggle-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1); /* Slight zoom on hover */
}

/* --- Developed By Footer --- */
.developed-by {
    margin-top: auto;
    transition: opacity 0.3s;
}

/* When Sidebar is COLLAPSED */
.sidebar.collapsed .developed-by .nav-text {
    display: none; /* Hide full text */
}

.sidebar.collapsed .developed-by .logo-text-collapsed {
    display: block !important; /* Show small icon */
}

/* Hover effect for the link */
.developed-by a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}



