/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Admin Container Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles - White Theme */
.sidebar {
    width: 280px;
    background: #ffffff;
    color: #64748b;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #e2e8f0;
}

.sidebar-header {
    padding: 18px 24px 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.logo-image {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.logo span {
    color: #1e293b;
    font-weight: 600;
}

.logo i {
    font-size: 20px;
    color: #6366f1;
    background: #f0f4ff;
    padding: 8px;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.nav-menu {
    list-style: none;
    padding: 0 16px;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background-color: #f8fafc;
    color: #374151;
}

.nav-link.active {
    background-color: #6366f1;
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.nav-link.active i {
    opacity: 1;
}

/* Navigation sections */
.nav-section {
    margin-top: 32px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px 8px 16px;
    margin-bottom: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 15px;
    border-top: 1px solid #f1f5f9;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}

.login-btn:hover {
    background-color: #5b5bd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Top Header */
.top-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 20px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.top-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0.6;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f8fafc;
}

.header-left h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.page-subtitle {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.notification-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* Section Styles */
.section {
    display: none;
    padding: 32px;
    flex: 1;
}

.active-section {
    display: block;
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    animation: staggerIn 0.8s ease-out;
}

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 200px;
    height: 200px;
}

/* Removed the blue line from metric cards */

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.1);
}

/* Removed hover effect for blue line */

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    position: relative;
    transition: transform 0.3s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

.metric-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
}

.metric-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.metric-content h3 {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.metric-change.positive {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.metric-change.negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.metric-period {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Metric Card Breakdown Styles */
.instock-breakdown,
.deployed-breakdown,
.verification-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.breakdown-section {
    margin-bottom: 8px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.breakdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.breakdown-item:hover {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: #c7d2fe;
    transform: translateX(4px);
}

.breakdown-item:hover::before {
    opacity: 1;
}

.breakdown-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    flex: 1;
    min-width: 0;
}

.breakdown-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    animation: slideInFromBottom 0.8s ease-out 0.2s both;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.chart-card:hover::before {
    opacity: 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Age Distribution */
.age-distribution {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.age-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.age-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.age-item:hover {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: #c7d2fe;
    transform: translateX(8px);
}

.age-item:hover::before {
    width: 4px;
}

.age-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 80px;
}

.age-bar {
    flex: 1;
    height: 12px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.age-progress {
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 8px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.age-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerProgress 2s ease-in-out infinite;
}

@keyframes shimmerProgress {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.age-count {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Header */
.content-header {
    margin-bottom: 24px;
}

.content-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.content-header p {
    color: #64748b;
    font-size: 15px;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* Responsive form actions */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions .btn-clear {
        width: 100%;
        justify-content: center;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #6366f1;
    color: white;
}

.btn-primary:hover {
    background-color: #5b5bd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 12px 24px;
    background-color: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Clear button with orange/amber styling */
.btn-clear {
    padding: 12px 24px;
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear:hover {
    background-color: #ffedd5;
    color: #9a3412;
    border-color: #fdba74;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

.btn-clear:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(251, 146, 60, 0.3);
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.search-form {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 20px;
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    flex: 1;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.search-group input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.search-buttons .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.search-buttons .btn-primary {
    background-color: #6c63ff;
    color: white;
    border: none;
}

.search-buttons .btn-primary:hover {
    background-color: #5b51e5;
}

.search-buttons .btn-secondary {
    background-color: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.search-buttons .btn-secondary:hover {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.search-buttons .btn i {
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .search-buttons {
        flex-direction: row;
        width: 100%;
    }

    .search-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Table Container */
.search-result {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.asset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.asset-table th,
.asset-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.asset-table thead th {
    background: #f9fafb;
    font-weight: 500;
    color: #6b7280;
}

.asset-table tbody tr:hover {
    background-color: #f8faff;
}

/* Checkbox Styles */
.asset-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #6366f1;
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.verified {
    background: #dcfce7;
    color: #15803d;
}

.status-badge.not-verified {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.pending {
    background: #fef3c7;
    color: #b45309;
}

/* Edit Button */
.btn-edit {
    padding: 6px 12px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-edit:hover {
    background: #4f46e5;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 32px;
    color: #6b7280;
    font-size: 14px;
}

/* Responsive Table Container */
@media (max-width: 1024px) {
    .search-result {
        overflow-x: auto;
    }
    
    .asset-table {
        min-width: 1000px;
    }
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 20px 32px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: auto;
}

/* Sidebar overlay for mobile */
@media (max-width: 768px) {
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Notification Area */
#notificationArea {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    display: none;
}

#notificationArea.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    display: block;
}

#notificationArea.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    display: block;
}

/* User Profile */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-info:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
    transition: border-color 0.2s ease;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
}

.user-info:hover img {
    border-color: #6366f1;
}

.user-info .user-details {
    flex: 1;
    min-width: 0;
}

.user-info .user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-info .user-email {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-info .user-chevron {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.user-info.open .user-chevron {
    transform: rotate(180deg);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: fixed;
    left: 16px;
    width: 248px;
    bottom: 80px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    z-index: 1100;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-profile-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-profile-dropdown::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.user-profile-dropdown::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e2e8f0;
}

.dropdown-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.dropdown-header img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid #f1f5f9;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #64748b;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-header .user-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.dropdown-header .user-email {
    font-size: 14px;
    color: #64748b;
    word-break: break-all;
    line-height: 1.4;
}

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

.dropdown-menu-item {
    margin-bottom: 4px;
}

.dropdown-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-menu-link:hover {
    background-color: #f8fafc;
    color: #374151;
}

.dropdown-menu-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 16px 0;
}

.logout-btn-dropdown {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #ef4444;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Edit Button Styles */
.edit-btn {
    padding: 6px 16px;
    background-color: #fff;
    color: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background-color: #6366f1;
    color: white;
}

/* Table cell alignment for actions */
.asset-table td:last-child {
    text-align: center;
    width: 100px;
}

/* Animation for button click */
.edit-btn:active {
    transform: scale(0.95);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Message Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.popup-overlay .popup-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    margin: 20px;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    padding-right: 60px; /* Make space for close button */
}

.popup-header .close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
    font-weight: 300;
}

.popup-header .close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.popup-body {
    padding: 0 24px 24px 24px;
}

.popup-message {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    text-align: center;
    padding: 16px 0;
}

/* Success/Error styling for popup messages */
.popup-message.success {
    color: #059669;
    background-color: #ecfdf5;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #10b981;
}

.popup-message.error {
    color: #dc2626;
    background-color: #fef2f2;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #ef4444;
}

.popup-message.warning {
    color: #d97706;
    background-color: #fffbeb;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #f59e0b;
}

.popup-message.info {
    color: #2563eb;
    background-color: #eff6ff;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #3b82f6;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.modal-header {
    padding-right: 40px; /* Make space for close button */
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.close:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modal .form-group input,
.modal .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal .form-group input:disabled {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer .btn-primary {
    background-color: #6366f1;
    color: white;
    border: none;
}

.modal-footer .btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.modal-footer .btn-cancel {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.modal-footer .btn-cancel:hover {
    background-color: #f8fafc;
    color: #374151;
    border-color: #cbd5e1;
}

/* Toaster Notification Styles */
.toaster-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toaster {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    transform: translateX(100%);
    opacity: 0;
    animation: toasterSlideIn 0.3s ease-out forwards;
    max-width: 100%;
    min-width: 300px;
}

.toaster.removing {
    animation: toasterSlideOut 0.3s ease-in forwards;
}

@keyframes toasterSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toasterSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toaster-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.toaster.success .toaster-icon {
    background: #10b981;
}

.toaster.error .toaster-icon {
    background: #ef4444;
}

.toaster.warning .toaster-icon {
    background: #f59e0b;
}

.toaster.info .toaster-icon {
    background: #3b82f6;
}

.toaster-content {
    flex: 1;
    min-width: 0;
}

.toaster-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toaster-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    word-wrap: break-word;
}

.toaster-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toaster-close:hover {
    background-color: #f1f5f9;
    color: #64748b;
}

.toaster.success {
    border-left: 4px solid #10b981;
}

.toaster.error {
    border-left: 4px solid #ef4444;
}

.toaster.warning {
    border-left: 4px solid #f59e0b;
}

.toaster.info {
    border-left: 4px solid #3b82f6;
}

/* Responsive toaster styles */
@media (max-width: 768px) {
    .toaster-container {
        padding: 12px;
        left: 12px;
        right: 12px;
    }
    
    .toaster {
        padding: 12px;
        font-size: 14px;
    }
}

/* Access Control Messages */
.access-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.access-message.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.access-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.access-message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.access-message i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Disabled navigation styles */
.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-link.restricted {
    position: relative;
}

.nav-link.restricted::after {
    content: '🔒';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* Edit button disabled state */
.edit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
    color: #9ca3af;
}

/* Asset Reports Styles */
.report-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.report-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: #6366f1;
    font-size: 16px;
}

.card-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-text h2 {
    margin-bottom: 8px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: #6366f1;
    font-size: 12px;
    width: 14px;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select:hover {
    border-color: #9ca3af;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.action-group {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background-color: white;
    color: #6366f1;
    border: 1px solid #6366f1;
}

.btn-outline:hover {
    background-color: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-summary {
    font-size: 14px;
    color: #64748b;
    max-width: 300px;
}

/* Quick Reports Card */
.quick-reports-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.quick-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.quick-report-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-report-btn:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.quick-report-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.quick-report-icon.overdue {
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #92400e;
}

.quick-report-icon.aging {
    background: linear-gradient(135deg, #fce7f3, #ec4899);
    color: #be185d;
}

.quick-report-icon.unassigned {
    background: linear-gradient(135deg, #e0f2fe, #0ea5e9);
    color: #0c4a6e;
}

.quick-report-icon.summary {
    background: linear-gradient(135deg, #dcfce7, #22c55e);
    color: #166534;
}

.quick-report-icon.verified {
    background: linear-gradient(135deg, #dcfce7, #22c55e);
    color: #166534;
}

.quick-report-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.quick-report-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Report Preview Card */
.report-preview-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.record-count {
    font-size: 14px;
    color: #64748b;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    font-weight: 500;
}

.preview-content {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 16px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.preview-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 1;
}

.preview-table td {
    color: #64748b;
}

.preview-table tbody tr:hover {
    background: #f8fafc;
}

/* Button Enhancements */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .quick-reports-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .report-card,
    .quick-reports-card,
    .report-preview-card {
        padding: 16px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-reports-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-report-btn {
        padding: 12px;
        gap: 12px;
    }
    
    .quick-report-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .action-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .action-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .preview-content {
        overflow-x: auto;
    }
    
    .preview-table {
        min-width: 600px;
    }
}

/* Loading states */
.filter-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced popup styles for better integration */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: white;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.3s ease-out;
}

.popup-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    padding-right: 60px; /* Make space for close button */
}

.popup-header .close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
    font-weight: 300;
}

.popup-header .close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.popup-body {
    flex: 1;
    overflow: auto;
    padding: 0;
    max-height: calc(90vh - 140px);
}

.popup-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.popup-body table th,
.popup-body table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.popup-body table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 1;
}

.popup-body table td {
    color: #64748b;
}

.popup-body table tbody tr:hover {
    background: #f8fafc;
}

.popup-footer {
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.popup-footer label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.popup-footer select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    min-width: 120px;
}

.popup-footer .save-btn,
.popup-footer .close-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-footer .save-btn {
    background-color: #6366f1;
    color: white;
}

.popup-footer .save-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.popup-footer .close-btn {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.popup-footer .close-btn:hover {
    background-color: #f8fafc;
    color: #374151;
    border-color: #cbd5e1;
}

/* Responsive popup styles */
@media (max-width: 768px) {
    .popup {
        padding: 10px;
    }
    
    .popup-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .popup-header {
        padding: 16px 20px;
    }
    
    .popup-footer {
        padding: 12px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .popup-footer .save-btn,
    .popup-footer .close-btn {
        width: 100%;
        justify-content: center;
    }
    
    .popup-body table {
        font-size: 12px;
    }
    
    .popup-body table th,
    .popup-body table td {
        padding: 8px 12px;
    }
    
    .popup-body {
        overflow-x: auto;
    }
    
    .popup-body table {
        min-width: 600px;
    }
}

/* Profile Settings Styles */
.profile-settings-container,
.preferences-container,
.help-support-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-grid,
.preferences-grid,
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.settings-card,
.preferences-card,
.help-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.settings-card:hover,
.preferences-card:hover,
.help-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Security Info Styles */
.security-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.security-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.security-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.security-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.security-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.security-status.active {
    background: #dcfce7;
    color: #15803d;
}

/* Activity Log Styles */
.activity-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-action {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.activity-time {
    font-size: 12px;
    color: #64748b;
}

/* Preferences Styles */
.preference-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.preference-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.preference-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.preference-control {
    flex-shrink: 0;
}

.preference-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    min-width: 140px;
}

.preference-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

input:checked + .toggle-slider {
    background-color: #6366f1;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Help & Support Styles */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.step-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question span {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.faq-question i {
    color: #64748b;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 16px;
    max-height: 200px;
}

.faq-answer p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Support Options Styles */
.support-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.support-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.support-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.support-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* System Info Styles */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.info-value {
    font-size: 14px;
    color: #64748b;
}

/* Modal Enhancements for Bug Report and Feature Request */
.modal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
    resize: vertical;
    font-family: inherit;
}

.modal textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
    .settings-grid,
    .preferences-grid,
    .help-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .preference-control {
        width: 100%;
    }
    
    .preference-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .settings-card,
    .preferences-card,
    .help-card {
        padding: 16px;
    }
    
    .security-item,
    .activity-item,
    .preference-item,
    .support-option {
        padding: 12px;
    }
    
    .security-icon,
    .support-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .help-step {
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .faq-question {
        padding: 12px;
    }
    
    .faq-item.active .faq-answer {
        padding: 12px;
    }
}

/* Loading skeleton animations */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Add subtle pulse animation for active elements */
.metric-card:hover .breakdown-value {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Metric Icon Gradients */
.metric-icon.revenue {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.metric-icon.costs {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon.profits {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-icon.segments {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.metric-icon.instock {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-icon.cant-use {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Enhanced Chart Filter */
.chart-filter {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.chart-filter:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chart-filter:hover {
    border-color: #cbd5e1;
}

/* Enhanced Chart Content */
.chart-content {
    position: relative;
    min-height: 300px;
}

.chart-content canvas {
    transition: opacity 0.3s ease;
}

/* Enhanced loading states for metric cards */
.metric-card.loading .metric-value {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: transparent;
    background-clip: initial;
    border-radius: 4px;
    height: 32px;
    width: 80px;
}

/* Ripple Effect */
.metric-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced scrollbar for breakdown items */
.instock-breakdown::-webkit-scrollbar,
.deployed-breakdown::-webkit-scrollbar {
    width: 4px;
}

.instock-breakdown::-webkit-scrollbar-track,
.deployed-breakdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.instock-breakdown::-webkit-scrollbar-thumb,
.deployed-breakdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* Improved focus states */
.metric-card:focus-within {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .dashboard-grid {
        gap: 20px;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
        gap: 16px;
    }
    
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .metric-value {
        font-size: 24px;
    }
    
    .breakdown-item {
        padding: 8px 12px;
    }
    
    .breakdown-label {
        font-size: 12px;
    }
    
    .breakdown-value {
        font-size: 13px;
    }
    
    .age-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .age-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .age-bar {
        width: 100%;
        height: 8px;
    }
    
    .age-count {
        font-size: 14px;
        align-self: flex-end;
    }
}

/* Remove all possible highlighting and debug borders */
* {
    outline: none !important;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Override any debugging/inspection borders */
.mobile-devices-container,
.mobile-devices-container *,
.mobile-devices-grid,
.mobile-devices-grid *,
.device-category-card,
.device-category-card * {
    outline: none !important;
    border: none !important;
}

/* Restore necessary borders only where needed */
.device-category-card {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mobile-devices-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.3) !important;
}

/* Mobile Devices Inventory Styles */
.mobile-devices-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
    min-height: calc(100vh - 120px);
    position: relative;
    /* Remove any potential debugging borders */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.mobile-devices-header {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 0 20px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    /* Remove any potential debugging borders */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.mobile-devices-header h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #0f172a, #1e293b, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.mobile-devices-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    opacity: 0.8;
}

.mobile-devices-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

.mobile-devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.device-category-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.9) 100%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.06),
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.device-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    transition: all 0.5s ease;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.device-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(99, 102, 241, 0.01));
    pointer-events: none;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.device-category-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(5deg);
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.device-category-card:hover::before {
    height: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899, #f59e0b);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.device-category-card:hover::after {
    opacity: 1;
}

.device-category-card.talentica-devices::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af, #7c3aed);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.device-category-card.talentica-devices:hover::before {
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e3a8a, #7c3aed, #ec4899);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

.device-category-card.client-devices::before {
    background: linear-gradient(135deg, #10b981, #059669, #047857, #065f46);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.device-category-card.client-devices:hover::before {
    background: linear-gradient(135deg, #059669, #047857, #065f46, #10b981, #6366f1);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.5);
}

.device-category-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.device-category-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.device-category-card .card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 50%);
    border-radius: 20px;
}

.device-category-card .card-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.device-category-card:hover .card-icon {
    transform: scale(1.15) rotate(8deg) translateY(-2px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

.device-category-card:hover .card-icon::after {
    opacity: 1;
}

.talentica-devices .card-icon {
    background: 
        linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af, #7c3aed),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
}

.client-devices .card-icon {
    background: 
        linear-gradient(135deg, #10b981, #059669, #047857, #065f46),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
}

.device-category-card .card-title h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.device-category-card .card-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.8;
}

.device-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.device-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.device-type-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.device-type-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-type-item:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    transform: translateX(4px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
}

.device-type-item:hover::before {
    opacity: 1;
}

.device-type-item i {
    color: #6366f1;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.device-type-item:hover i {
    color: #4f46e5;
    transform: scale(1.1);
}

.card-actions {
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.card-actions .btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.card-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5, #4338ca);
    border: none;
    color: white;
    box-shadow: 
        0 4px 16px rgba(99, 102, 241, 0.25),
        0 1px 4px rgba(99, 102, 241, 0.15);
}

.card-actions .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca, #3730a3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.35),
        0 4px 12px rgba(99, 102, 241, 0.25);
}

.card-actions .btn-primary:hover::before {
    opacity: 1;
}

.card-actions .btn-secondary {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(209, 213, 219, 0.8);
    color: #374151;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
}

.card-actions .btn-secondary:hover {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(156, 163, 175, 0.8);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04);
    color: #1f2937;
}

.card-actions .btn-secondary:hover::before {
    opacity: 1;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-top: 20px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1000px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.quick-action-btn:hover::before {
    opacity: 1;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.25),
        0 2px 6px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.quick-action-btn:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 8px 28px rgba(99, 102, 241, 0.35),
        0 4px 12px rgba(99, 102, 241, 0.25);
}

.action-content {
    position: relative;
    z-index: 2;
}

.action-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 1024px) {
    .mobile-devices-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-devices-container {
        padding: 16px;
        gap: 24px;
    }
    
    .device-category-card {
        padding: 24px;
    }
    
    .device-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-action-btn {
        padding: 16px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .device-category-card .card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .device-types {
        gap: 8px;
    }
    
    .device-type-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Additional status badge styles for mobile devices */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.verified {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.unknown {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-badge.available {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.assigned {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.under-repair {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Enhanced Status Badge Styles for Mobile Devices */
.status-badge.location {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.status-badge:hover {
    transform: translateY(-1px) scale(1.05);
    transition: all 0.3s ease;
}

/* Enhanced Edit Asset Modal Styles */
.edit-asset-modal {
    max-width: 600px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    margin: 20px;
}

.edit-asset-modal .modal-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 24px 32px;
    margin: 0;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.edit-asset-modal .modal-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-asset-modal .modal-header h2 i {
    font-size: 20px;
    opacity: 0.9;
}

.edit-asset-modal .modal-header .close {
    color: white;
    top: 20px;
    right: 20px;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.edit-asset-modal .modal-header .close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.edit-asset-modal form {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 24px;
}

.form-section:last-of-type {
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 1px;
}

/* Form Rows for better layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group:only-child {
    grid-column: 1 / -1;
}

/* Enhanced form group styles */
.edit-asset-modal .form-group {
    margin-bottom: 0;
}

.edit-asset-modal .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-asset-modal .form-group input,
.edit-asset-modal .form-group select {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.edit-asset-modal .form-group input:focus,
.edit-asset-modal .form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.edit-asset-modal .form-group input:disabled,
.edit-asset-modal .form-group input[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
    box-shadow: none;
}

.edit-asset-modal .form-group input:disabled:focus,
.edit-asset-modal .form-group input[readonly]:focus {
    transform: none;
    box-shadow: none;
}

/* Enhanced form actions */
.edit-asset-modal .form-actions {
    background: #f8fafc;
    margin: 0 -24px -24px -24px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.edit-asset-modal .form-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.edit-asset-modal .form-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.edit-asset-modal .form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5b5bd6, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
}

.edit-asset-modal .form-actions .btn-cancel {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.edit-asset-modal .form-actions .btn-cancel:hover {
    background: #f8fafc;
    color: #374151;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Responsive design for Edit Asset modal */
@media (max-width: 768px) {
    .edit-asset-modal {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .edit-asset-modal .modal-header {
        padding: 16px 20px;
    }
    
    .edit-asset-modal .modal-header h2 {
        font-size: 18px;
    }
    
    .edit-asset-modal form {
        padding: 20px;
        max-height: calc(95vh - 60px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .edit-asset-modal .form-actions {
        margin: 0 -24px -24px -24px;
        padding: 20px 24px;
        flex-direction: column;
    }
    
    .edit-asset-modal .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .edit-asset-modal {
        max-width: 100vw;
        margin: 10px;
        border-radius: 12px;
    }
    
    .edit-asset-modal .modal-header {
        border-radius: 12px 12px 0 0;
        padding: 16px 20px;
    }
    
    .edit-asset-modal form {
        padding: 20px;
    }
    
    .edit-asset-modal .form-actions {
        margin: 0 -20px -20px -20px;
        padding: 16px 20px;
    }
}

/* Error field styling for duplicate checking */
.error-field {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form field focus states */
.form-group input:focus,
.form-group select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

/* Error state for form fields */
.form-group input.error-field:focus,
.form-group select.error-field:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Dashboard Metric Cards */
.dashboard-grid {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.metric-icon.revenue {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-icon.costs {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon.profits {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-icon.instock {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.metric-icon.cant-use {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.metric-icon.scrapped {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.metric-content {
    flex: 1;
}

.metric-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive {
    color: #059669;
}

.metric-change.negative {
    color: #dc2626;
}

.metric-period {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.metric-description {
    margin-top: 8px;
}

.metric-description span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Breakdown styles */
.deployed-breakdown,
.verification-breakdown,
.instock-breakdown {
    margin-top: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.breakdown-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.breakdown-value {
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.chart-controls select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    background: white;
}

/* Age Distribution */
.age-distribution {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.age-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.age-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    min-width: 60px;
}

.age-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.age-progress {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.age-count {
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .metrics-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        padding: 16px;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .chart-card {
        padding: 20px;
    }
}


