/* ============================================
   DDC Stock Management System - Main Stylesheet
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #1a616e;;
    --primary-dark: #0f3d47;
    --primary-light: #2a8a9e;
    --secondary-color: #f1f8e9;
    --accent-color: #155724;
    --accent-light: #155724;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    --success: #28a745;
    --success-bg: #d4edda;
    --success-text: #155724;
    
    --danger: #dc3545;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    
    --warning: #ffc107;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    
    --info: #17a2b8;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --sidebar-width: 300px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ============================================
   3. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   4. LOGIN PAGE
   ============================================ */
.login-container {
    max-width: 420px;
    width: 90%;
    margin: 50px auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent-color);
    animation: fadeInUp 0.5s ease;
}

.imgcontainer {
    text-align: center;
    margin-bottom: 1.5rem;
}

.imgcontainer .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.tit, .log-titel h4 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-btns {
    margin-top: 1.5rem;
}

.logbtn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.logbtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 97, 110, 0.3);
}

.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    font-size: 0.85rem;
    color: var(--text-light);
}

.forgot-password a:hover {
    color: var(--primary-color);
}

/* ============================================
   5. ALERTS & MESSAGES (Consolidated)
   ============================================ */
.alert {
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.err, .error-message, .alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-left-color: var(--danger);
}

.success, .success-message, .alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-left-color: var(--success);
}

.warning-message, .alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-left-color: var(--warning);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border-left-color: var(--info);
}

/* ============================================
   6. FORM CONTROLS
   ============================================ */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--danger);
}

.form-controls {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.form-controls:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 97, 110, 0.15);
}

.form-controls:hover {
    border-color: var(--primary-light);
}

textarea.form-controls {
    min-height: 100px;
    resize: vertical;
}

select.form-controls {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.form-group .help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Form Sections */
.form-container {
    width: 100%;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   7. BUTTONS (Consolidated)
   ============================================ */
.btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    background: var(--primary-color);
    color: var(--white);
}

.btn:hover, .btn-primary:hover {
    transform: translateY(-1px);
    text-decoration: none;
    background: var(--primary-dark);
    color: var(--white);
}

.btn-success { background: var(--success); }
.btn-success:hover { background: #218838; color: var(--white); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c82333; color: var(--white); }

.btn-warning { background: var(--warning); color: var(--text-color); }
.btn-warning:hover { background: #e0a800; }

.btn-info { background: var(--info); color: var(--white); }
.btn-info:hover { background: #138496; color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }

/* ============================================
   8. SIDEBAR (Consolidated - Final Version)
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-color);
    color: var(--white);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
}

.sidebar.show {
    left: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar .logo-details {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.sidebar .logo-details img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.sidebar .logo-details .logo_name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.sidebar .nav-links {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.sidebar .nav-links li {
    margin: 2px 0;
    position: relative;
}

.sidebar .nav-links li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar .nav-links li a:hover,
.sidebar .nav-links li a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left-color: var(--accent-color);
}

.sidebar .nav-links li a.active {
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

.sidebar .nav-links li a i {
    margin-right: 12px;
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

.sidebar .nav-links li a .arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sidebar .nav-links li.show a .arrow {
    transform: rotate(180deg);
}

.sidebar .nav-links .sub-menu {
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
    background: rgba(0,0,0,0.15);
}

.sidebar .nav-links li.show .sub-menu {
    display: block;
}

.sidebar .nav-links .sub-menu li a {
    padding: 10px 25px 10px 60px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    border-left: none;
}

.sidebar .nav-links .sub-menu li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* ============================================
   9. HEADER (Consolidated - Final Version)
   ============================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin: 0px 0px  20px 0px;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.overview-box .header {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    padding: 15px 20px;
    margin: 0px;
    position: static;
}

.overview-box .header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    line-height: 1;
}

.sidebar-toggle:hover {
    background: var(--light-bg);
}

.page-info h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.header-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border-radius: 50px;
    padding: 8px 15px;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header-search:focus-within {
    border-color: var(--primary-color);
    background: var(--white);
}

.header-search i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 5px;
    width: 200px;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-color);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-details {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.profile-details:hover {
    background: var(--light-bg);
}

.profile-details img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.profile-text {
    display: flex;
    flex-direction: column;
}

.profile-text .admin_name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.2;
}

.user-role {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-details .bx-chevron-down {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 200;
    margin-top: 10px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.profile-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.profile-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
}

.profile-dropdown a i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.profile-dropdown hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid var(--border-light);
}

.profile-dropdown .logout-link {
    color: var(--danger);
}

.profile-dropdown .logout-link:hover {
    background: var(--danger-bg);
}

.profile-dropdown .logout-link i {
    color: var(--danger);
}

/* ============================================
   10. MAIN CONTENT
   ============================================ */
.home-section {
    margin-left: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background: var(--secondary-color);
}

.home-content {
    padding: 0 20px 20px;
}

.overview-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.overview-box .container {
    padding: 10px;
}

/* ============================================
   11. STATS CARDS
   ============================================ */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 10px 0 10px 0;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.suppliers { background: #e3f2fd; color: #1976d2; }
.stat-card .stat-icon.items { background: #fce4ec; color: #c62828; }
.stat-card .stat-icon.stock { background: #e8f5e9; color: #2e7d32; }
.stat-card .stat-icon.checkouts { background: #fff3e0; color: #e65100; }
.stat-card .stat-icon.users { background: #f3e5f5; color: #6a1b9a; }
.stat-card .stat-icon.low-stock { background: #ffebee; color: #c62828; }

.stat-card .stat-info h3 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
}

.stat-card .stat-info p {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.stat-card .stat-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

/* ============================================
   12. TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead {
    background: var(--primary-color);
    color: var(--white);
}

.table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr:hover {
    background: rgba(26, 97, 110, 0.03);
}

.table tbody tr:nth-child(even) {
    background: var(--light-bg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active, .badge-new, .badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-inactive, .badge-damaged, .badge-overdue, .badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.badge-used, .badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-pending, .badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

/* ============================================
   13. DASHBOARD COMPONENTS
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Chart */
.chart-container {
    padding: 10px 0;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    padding: 10px;
    gap: 10px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.bar-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.bar-wrapper {
    width: 100%;
    max-width: 50px;
    height: 150px;
    background: var(--border-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.5s ease;
    min-height: 2px;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    color: var(--border-color);
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Overdue Row */
.overdue-row {
    background: var(--warning-bg) !important;
}

.overdue-row:hover {
    background: #fff3cd !important;
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--light-bg);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-default .activity-icon { background: var(--light-bg); color: var(--text-muted); }
.activity-login .activity-icon { background: #d4edda; color: #155724; }
.activity-logout .activity-icon { background: #f8d7da; color: #721c24; }
.activity-password .activity-icon { background: #fff3cd; color: #856404; }
.activity-supplier .activity-icon { background: #d1ecf1; color: #0c5460; }
.activity-item .activity-icon { background: #e8daef; color: #6c3483; }
.activity-checkout .activity-icon { background: #d5f5e3; color: #1e8449; }
.activity-return .activity-icon { background: #fdebd0; color: #b9770e; }
.activity-stock .activity-icon { background: #e8f8f5; color: #148f77; }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-action {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.activity-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.activity-user {
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: var(--light-bg);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    gap: 10px;
}

.quick-action-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.quick-action-card i {
    font-size: 2rem;
}

.quick-action-card span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   14. SEARCH SECTION
   ============================================ */
.search-section {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.search-section .search-input {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   15. MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

/* ============================================
   16. FILE UPLOAD
   ============================================ */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(26, 97, 110, 0.02);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
}

/* ============================================
   17. PASSWORD CHANGE
   ============================================ */
.password-requirements {
    margin-top: 0.5rem;
    padding: 12px;
    background: var(--light-bg);
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.password-requirements strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin-bottom: 4px;
    padding-left: 24px;
    position: relative;
    transition: color 0.3s ease;
}

.password-requirements li::before {
    position: absolute;
    left: 4px;
    font-weight: bold;
}

.password-requirements li.pending { color: var(--text-muted); }
.password-requirements li.pending::before { content: "○"; color: var(--text-muted); }
.password-requirements li.valid { color: var(--success); }
.password-requirements li.valid::before { content: "✓"; color: var(--success); }
.password-requirements li.invalid { color: var(--danger); }
.password-requirements li.invalid::before { content: "✗"; color: var(--danger); }

.password-strength {
    margin-top: 0.5rem;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.strength-weak { background-color: var(--danger); width: 25% !important; }
.strength-fair { background-color: var(--warning); width: 50% !important; }
.strength-good { background-color: var(--info); width: 75% !important; }
.strength-strong { background-color: var(--success); width: 100% !important; }

.password-match-msg {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.match-success { color: var(--success); }
.match-error { color: var(--danger); }

.show-password-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 0.9rem;
    user-select: none;
}

.show-password-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.show-password-toggle label {
    cursor: pointer;
    margin-bottom: 0;
}

.user-info-banner {
    background: var(--info-bg);
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--info);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--info-text);
}

.user-info-banner i {
    font-size: 1.5rem;
    color: var(--info);
}

/* ============================================
   18. UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================
   19. RESPONSIVE
   ============================================ */
@media (min-width: 993px) {
    .sidebar {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .home-section {
        margin-left: var(--sidebar-width);
    }
    
    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 992px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .home-section {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .header {
        margin: 0px 0px  10px 0px;;
        padding: 12px 15px;
    }
    
    .header-search input {
        width: 150px;
    }
    
    .profile-text {
        display: none;
    }
    
    .profile-details .bx-chevron-down {
        display: none;
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap:10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
        .sidebar.show {
        left: 0;
    }
    
    .search-section {
        flex-direction: row;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody td {
        display: block;
        text-align: right;
        padding: 8px 15px;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .bar-chart {
        height: 150px;
    }
    
    .bar-wrapper {
        height: 100px;
    }
    
    .activity-list {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .login-container {
        margin: 0;
        padding: 1.5rem;
        width: 100vh;
        height: 100vh;
    }
.imgcontainer{
    margin: 6rem 2rem 3rem 2rem ;
    padding: 0;
}
    
    .header {
        margin: 5px;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }
    
    .header-search {
        display: none;
    }
    
    .page-info h3 {
        font-size: 1rem;
    }
    
    .header-date {
        display: none;
    }
    
    .profile-details img {
        width: 35px;
        height: 35px;
    }
    
    .home-content {
        padding: 0 10px 10px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-card .stat-info h3 {
        font-size: 1.3rem;
    }
}

/* ============================================
   20. PRINT
   ============================================ */
@media print {
    .sidebar, .header, .form-actions, .btn {
        display: none !important;
    }
    
    .home-section {
        margin-left: 0;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table thead th {
        background: #f0f0f0;
        color: #000;
    }
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card-icon.permanent {
    background: #e3f2fd;
    color: #1976d2;
}

.info-card-icon.temporary {
    background: #fff3e0;
    color: #e65100;
}

.info-card-icon.consumable {
    background: #f3e5f5;
    color: #6a1b9a;
}

.info-card-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.info-card-content p {
    margin: 0 0 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-card-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}
/* ============================================
   TABLE INFO & ACTIONS
   ============================================ */
.table-info {
    padding: 10px 0;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* ============================================
   DROPDOWN
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 300;
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-top: 5px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-menu a i {
    font-size: 1rem;
    color: var(--text-muted);
}

.dropdown-menu hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid var(--border-light);
}

.dropdown-menu a.text-danger {
    color: var(--danger);
}

.dropdown-menu a.text-danger:hover {
    background: var(--danger-bg);
}

.dropdown-menu a.text-danger i {
    color: var(--danger);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-dots {
    padding: 0 5px;
    color: var(--text-muted);
}

.pagination .btn-sm {
    min-width: 35px;
}

/* ============================================
   USER LIST STYLES
   ============================================ */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.ml-1 {
    margin-left: 0.5rem;
}

/* ============================================
   USER PROFILE HEADER
   ============================================ */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.user-profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.user-profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.user-status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.user-status-indicator.active {
    background: var(--success);
}

.user-status-indicator.inactive {
    background: var(--danger);
}

.user-profile-info {
    flex: 1;
    min-width: 250px;
}

.user-profile-info h2 {
    margin: 0 0 8px 0;
}

.user-profile-info .badge {
    margin-right: 5px;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.user-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-meta i {
    color: var(--primary-color);
}

.user-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.user-profile-actions .btn {
    width: 100%;
}

/* ============================================
   DETAIL LIST
   ============================================ */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.detail-value {
    color: var(--text-color);
}

/* ============================================
   ACTIVITY IP
   ============================================ */
.activity-ip {
    color: var(--text-muted);
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .user-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-meta {
        justify-content: center;
    }
    
    .user-profile-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .detail-label {
        min-width: 120px;
    }
}

/* ============================================
   WELCOME BANNER
   ============================================ */
.welcome-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.welcome-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.welcome-icon i {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.welcome-text h2 {
    margin: 0 0 5px 0;
}

.welcome-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.welcome-text .badge {
    vertical-align: middle;
}

@media (max-width: 576px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
    }
}

/* ============================================
   ITEM SUMMARY CARDS GRID
   ============================================ */
.item-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.item-summary-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.item-summary-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.item-summary-card.overdue {
    border-left: 4px solid var(--danger);
    background: var(--danger-bg);
}

.item-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.item-summary-header i {
    font-size: 1.2rem;
}

.item-summary-body {
    padding: 15px;
}

.item-summary-detail {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.item-summary-detail:last-child {
    border-bottom: none;
}

.item-summary-detail small {
    color: var(--text-muted);
    font-weight: 500;
}

.item-summary-detail span {
    color: var(--text-color);
    font-weight: 500;
}

.item-summary-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 576px) {
    .item-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   ITEM HEADER
   ============================================ */
.item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.item-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.item-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.item-info h2 {
    margin: 0 0 8px 0;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   STOCK STATUS VISUAL
   ============================================ */
.stock-status-visual {
    padding: 15px 0;
}

.stock-status-bar {
    display: flex;
    height: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border-light);
}

.status-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    transition: width 0.5s ease;
    min-width: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.status-segment.available {
    background: var(--success);
}

.status-segment.checked-out {
    background: var(--warning);
    color: var(--text-color);
}

.status-segment.other {
    background: var(--border-light);
}

.stock-status-legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-color.available { background: var(--success); }
.legend-color.checked-out { background: var(--warning); }
.legend-color.other { background: var(--border-light); }

@media (max-width: 768px) {
    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-header-actions {
        width: 100%;
    }
    
    .item-header-actions .btn {
        flex: 1;
    }
    
    .item-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}
/* ============================================
   REQUEST HEADER
   ============================================ */
.request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.request-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.request-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
}

.request-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.request-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

/* Review Notes Box */
.review-notes-box {
    padding: 12px 15px;
    border-radius: var(--radius);
    border-left: 4px solid;
    margin-top: 5px;
}

.review-notes-box.approved {
    background: var(--success-bg);
    border-left-color: var(--success);
    color: var(--success-text);
}

.review-notes-box.rejected {
    background: var(--danger-bg);
    border-left-color: var(--danger);
    color: var(--danger-text);
}

.review-notes-box p {
    margin: 0;
}

@media (max-width: 768px) {
    .request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-header-actions {
        width: 100%;
    }
    
    .request-header-actions .btn {
        flex: 1;
    }
    
    .request-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* ============================================
   NOTIFICATIONS
   ============================================ */
.header-notifications {
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.6rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: -50px;
    width: 380px;
    max-width: 95vw;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    margin-top: 10px;
    border: 1px solid var(--border-light);
    max-height: 500px;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
}

.mark-all-read {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--light-bg);
    text-decoration: none;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bg-info { background: #d1ecf1; color: #0c5460; }
.bg-success { background: #d4edda; color: #155724; }
.bg-warning { background: #fff3cd; color: #856404; }
.bg-danger { background: #f8d7da; color: #721c24; }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.notification-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: var(--light-bg);
}

.notification-footer a {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Notification Page List */
.notification-page-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.notification-page-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.notification-page-item.unread {
    background: #f0f7ff;
    border-left: 3px solid var(--primary-color);
}

.notification-page-item .notification-content {
    flex: 1;
}

.notification-page-item .notification-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .notification-dropdown {
        width: 300px;
        right: -80px;
    }
    
    .notification-page-item {
        flex-direction: column;
    }
    
    .notification-page-item .notification-actions {
        align-self: flex-end;
    }
}