/* assets/css/style.css - FDW Work Management System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Core Colors from UI Theme */
    --primary-color: #4f46e5;      /* Deep Indigo/Blue */
    --secondary-color: #8b5cf6;    /* Violet/Purple */
    --accent-color-1: #10b981;     /* Emerald/Green */
    --accent-color-2: #ef4444;     /* Red/Danger */
    --background-light: #f8fafc;   /* Very light grey background */
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 80px;
    --header-height: 70px;
    --card-radius: 1rem;
    /* Soft Shadow for Cards */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    
    /* Font Family Variables */
    --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 0.83rem;
    line-height: 1.5;
    background-color: var(--background-light);
    color: var(--text-dark);
    overflow-x: hidden;
}


/* Headings - Darker & Bolder but Compact */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 1.5rem; }      /* 24px */
h2 { font-size: 1.25rem; }     /* 20px */
h3 { font-size: 1.125rem; }    /* 18px */
h4 { font-size: 1rem; }        /* 16px (Card Titles) */
h5 { font-size: 0.875rem; }    /* 14px */
h6 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; } /* 12px */


/* All <select> dropdowns */
select {
    font-size: 0.84rem !important;
}

/* Options inside dropdown */
select option {
    font-size: 0.84rem !important;
}

/* Bootstrap dropdown menu items */
.dropdown-menu,
.dropdown-item {
    font-size: 0.84rem !important;
}

/* Form-select (Bootstrap 5) */
.form-select {
    font-size: 0.84rem !important;
	padding:10px 15px !important;
	border-radius: 0.7rem !important;
}

/* --- Login Page Styles --- */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .app-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.login-logo h1 {
    font-size: 1.5rem; /* 24px */
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.login-logo p {
    font-size: 0.875rem; /* 14px */
    color: var(--text-muted);
    margin: 0;
}

.form-control {
    padding: 10px 15px;
    border-radius: 0.7rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    font-size: 0.84rem; 
    font-family: var(--font-sans);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Standardized Button Styles */
.btn {
    padding: 9px 15px;
    border-radius: 0.7rem !important;
    font-weight: 600;
    font-size: 0.75rem !important; 
    font-family: var(--font-sans);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}


/* --- Header --- */
.top-header {
    height: var(--header-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.search-input {
    background-color: #f1f5f9;
    border: none;
    border-radius: 0.7rem;
    padding: 0.5rem 1rem;
    width: 300px;
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}

.search-input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* --- Card Styling --- */
.app-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    /*height: 100%;*/
    border: none;
    transition: transform 0.2s;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.stat-icon.primary {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color-1);
}

.stat-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-color-2);
}

.stat-info h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin: 0;
    font-family: var(--font-sans);
}

.stat-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}

/* Dashboard Cards */
.dashboard-card {
    background-color: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.card-header h3 {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    margin: 0;
    font-family: var(--font-sans);
}

.view-all {
    color: var(--primary-color);
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    text-decoration: none;
    font-family: var(--font-sans);
}

.project-item, .deadline-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-item:last-child, .deadline-item:last-child {
    border-bottom: none;
}

.project-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
}

.project-info h5, .deadline-info h5 {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    margin: 0;
    font-family: var(--font-sans);
}

.project-info p, .deadline-info p {
    font-size: 0.75rem; /* 12px */
    color: var(--text-muted);
    margin: 0;
    font-family: var(--font-sans);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.65rem; /* 11px */
    font-weight: 500;
    font-family: var(--font-sans);
}

.badge-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-in-progress {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.badge-completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color-1);
}

.badge-cancelled {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-color-2);
}

.date-badge {
    background-color: var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    font-family: var(--font-sans);
}

.domain-type {
    font-size: 0.75rem; /* 12px */
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--card-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.welcome-card h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin-bottom: 5px;
    font-family: var(--font-sans);
}

.welcome-card p {
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}

/* User Card Specifics */
.user-card {
    text-align: center;
}
.user-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid #f0f4ff;
    box-shadow: 0 0 0 3px #ffffff;
}

.skill-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    margin: 0.25rem;
    font-family: var(--font-sans);
}
.badge-php { background-color: #e0e7ff; color: #4f46e5; }
.badge-node { background-color: #d1fae5; color: #10b981; }
.badge-react { background-color: #eff6ff; color: #3b82f6; }
.badge-js { background-color: #fef3c7; color: #f59e0b; }
.badge-css { background-color: #bae6fd; color: #0ea5e9; }

.btn-profile {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}
.btn-chat {
    background-color: #f1f5f9;
    color: var(--text-dark);
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}

/* Top Seller Cards */
.top-seller-card .metric-number {
    font-size: 2rem; /* 32px */
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-sans);
}
.top-seller-card .target-number {
    font-size: 1.1rem; /* 17.6px */
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-sans);
}
.progress-label {
    font-size: 0.75rem; /* 12px */
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

/* General Layout Adjustments */
.p-x-12 { padding-left: 3rem !important; padding-right: 3rem !important; }
.p-4-5 { padding: 1.5rem !important; }
.text-xs { font-size: 0.75rem; } /* 12px */
.text-2xl { font-size: 1.5rem; } /* 24px */
.text-3xl { font-size: 1.875rem; } /* 30px */
.text-4xl { font-size: 2.25rem; } /* 36px */

/* User Dropdown */
.user-dropdown .dropdown-toggle {
    color: var(--text-dark);
    font-weight: 500;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.875rem; /* 14px */
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 8px;
    font-family: var(--font-sans);
}

/* Table Styling */
.table-card {
    background-color: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}

.table td {
    padding: 12px 15px;
    border-color: var(--border-color);
    font-size: 0.875rem; /* 14px */
    font-family: var(--font-sans);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 60px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 150px;
    }
}

/* Additional font size classes for consistency */
.text-sm { font-size: 0.875rem; } /* 14px */
.text-base { font-size: 1rem; } /* 16px */
.text-lg { font-size: 1.125rem; } /* 18px */
.text-xl { font-size: 1.25rem; } /* 20px */

/* Apply font family to all text elements */
h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea, select, label, li {
    font-family: var(--font-sans);
}

/* Code or monospace elements */
code, pre, .code {
    font-family: var(--font-mono);
}


/* Additional styles for projects.php */
.dropdown-menu {
    font-size: 0.84rem !important;
}

.pagination {
    font-size: 0.84rem;
}

.form-select-sm {
    font-size: 0.84rem;
}

.table {
    font-size: 0.84rem;
}

.inr-symbol {
    font-family: Arial, sans-serif;
    font-weight: bold;
}


.nav-link {
    position: relative;
}

.nav-link span {
    transition: opacity 0.3s ease;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-input {
        width: 100% !important;
    }
    
    .app-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }
}

/* Better modal styling */
.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Improved table responsiveness */
@media (max-width: 992px) {
    .table-responsive {
        font-size: 0.8rem;
    }
}








/* --- Sidebar Scroll Improvements --- */
.sidebar {
    width: var(--sidebar-width); /* 80px */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Align everything to center by default (collapsed) */
    overflow: hidden;
}

/* Scrollable area for sidebar content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-bottom: 1rem; /* Space at bottom */
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* For Firefox */
.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Adjust sidebar-nav to be scrollable */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    flex: 1; /* Take available space */
}

/* Ensure the bottom items stay at bottom but are scrollable if needed */
.sidebar-nav .nav-link.mt-auto {
    margin-top: auto;
}

/* Logo container adjustments */
.sidebar-brand {
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0; /* Prevent logo from shrinking */
}






.logo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the logo inside */
    height: 32px;
    transition: all 0.3s ease;
    /* Important: Don't set fixed width here, let it grow */
}

.app-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 6px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.full-logo-text {
    /* COLLAPSED STATE (Default): */
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    
    /* Crucial Fix: Collapse the width to 0 so it doesn't push the logo */
    max-width: 0; 
    margin-left: 0;
    opacity: 0;
    
    transition: all 0.3s ease;
}




.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* Sidebar Nav Links */
.nav-link {
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 0.7rem;
    font-size: 1.1rem; /* Icon size */
    transition: 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center; /* Center icon when collapsed */
    text-decoration: none;
    font-family: var(--font-sans);
    width: 100%; /* Take full width for hover area */
}
.nav-link i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nav-link span {
    font-size: 0.83rem; 
    white-space: nowrap; 
    overflow: hidden; 
    display: none;
    transition: opacity 0.3s ease, margin-left 0.3s ease; 
}

.nav-link i {
    /* Ensure icon size is consistent */
    font-size: 1.25rem;
}

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

.nav-link span {
    display: none;
}

/* Specific icon gradient from UI */
.app-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 6px;
}

/* --- Main Content Area --- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s ease;
}




/* Expanded sidebar styles */
.sidebar:hover {
    width: 260px !important;
    align-items: flex-start;
}

.sidebar:hover .sidebar-brand {
    justify-content: flex-start;
    padding-left: 1.5rem;
}

.sidebar:hover .logo-container {
    justify-content: flex-start;
}

.sidebar:hover .full-logo-text {
    max-width: 200px;
    margin-left: 0.75rem;
    opacity: 1;
}

.sidebar:hover .nav-link {
    justify-content: flex-start;
    padding-left: 1.5rem;
    padding-right: 1rem;
}

.sidebar:hover .nav-link span {
    display: inline !important;
    margin-left: 0.75rem;
}

.sidebar:hover + .main-content {
    margin-left: 260px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .sidebar:hover {
        width: 240px !important;
    }
    
    .sidebar:hover + .main-content {
        margin-left: 240px;
    }
}



.modal-body {
	padding: 1.7rem;
}