/* ==========================
   CLOCK
========================== */
.digital-clock {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 1px;
    font-family: monospace;
}

/* ==========================
   FOOTER
========================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    color: #010101;
    padding: 60px 80px 30px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    z-index: 1000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 220px;
}

.footer-logo-img {
    margin-top: 30px;
    width: 300px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: #ffb300;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 600;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-column ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffb300;
}

.footer-column p {
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 13px;
    color: #000000;
}

/* Footer Social Links */
.footer .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: #ff9137;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .link svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.footer .link:hover {
    transform: translateY(-4px);
    fill: #fff;
}

.footer .link:nth-child(1):hover { background-color: #0A66C2; }
.footer .link:nth-child(2):hover { background-color: #1877F2; }
.footer .link:nth-child(3):hover { background-color: #000000; }

/* Category Chart Colors */
.chart-bar.computer {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.chart-bar.vehicle {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.chart-bar.equipment {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.chart-bar.software {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.chart-bar.furniture {
    background: linear-gradient(90deg, #ec4899 0%, #db2777 100%);
}

.chart-bar.mobile {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
}

/* Default color for unknown categories */
.chart-bar {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}


/* ==========================
   CONTENT AREA
========================== */
.content {
    padding: 40px;
}

/* Notifications */
.notification {
    position: relative;
    cursor: pointer;
}

.notification svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================
   STATS GRID & CARDS
========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-info h3 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 5px;
}

.stat-info p {
    color: #6b7280;
    font-size: 14px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue { background-color: #dbeafe; }
.stat-icon.green { background-color: #d1fae5; }
.stat-icon.yellow { background-color: #fef3c7; }
.stat-icon.red { background-color: #fee2e2; }

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.blue svg { color: #2563eb; }
.green svg { color: #10b981; }
.yellow svg { color: #f59e0b; }
.red svg { color: #ef4444; }

/* ==========================
   SECTIONS & TABLES
========================== */
.section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    color: #1a1d2e;
}

/* ==========================
   TABLE WRAPPER - SCROLLABLE
========================== */
.table-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
}

/* Collapsed state: Fixed height with scroll */
.table-wrapper.collapsed {
    max-height: 400px;
}

/* Expanded state: Show all content with scroll if needed */
.table-wrapper.expanded {
    max-height: 800px; /* Maximum height before scrolling kicks in */
}

/* Custom scrollbar styling */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* For Firefox */
.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f1f1;
}

/* Fade effect at bottom when scrollable */
.table-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

/* Remove fade effect when expanded and not at max height */
.table-wrapper.expanded::after {
    display: none;
}

/* Table remains full width */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Sticky table header */
.table-wrapper thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f9fafb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

thead {
    background-color: #f9fafb;
}

th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 12px;
    border-top: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-assigned { background-color: #d1fae5; color: #065f46; }
.status-available { background-color: #dbeafe; color: #1e40af; }
.status-active { background-color: #d1fae5; color: #065f46; }
.status-maintenance { background-color: #fef3c7; color: #92400e; }
.status-retired { background-color: #ffd1cd; color: #ef4444; }

/* View All button styling */
.view-all-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.view-all-btn:active {
    transform: translateY(0);
}

/* Section styling */
.section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    color: #1a1d2e;
}

/* Loading state (optional) */
.table-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.table-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.table-empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-wrapper.collapsed {
        max-height: 300px;
    }
    
    .table-wrapper.expanded {
        max-height: 600px;
    }
}

/* ==========================
   CHARTS
========================== */
.chart-container { margin-top: 20px; }

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-label {
    width: 150px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.chart-bar-container {
    flex: 1;
    height: 32px;
    background-color: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.chart-bar.computer { background-color: #3b82f6; }
.chart-bar.vehicle { background-color: #10b981; }
.chart-bar.equipment { background-color: #f59e0b; }
.chart-bar.software { background-color: #8b5cf6; }
.chart-bar.furniture { background-color: #ec4899; }
.chart-bar.mobile { background-color: #06b6d4; }
