/* ===================================================
 * SIMBARMEN — Purple Admin Visual Theme Stylesheet
 * Vibrant modern aesthetics, purple gradients, glassmorphism cards
 * =================================================== */

:root {
    --purple-primary: #b66dff;
    --purple-dark: #8f34f5;
    --purple-gradient: linear-gradient(135deg, #da8cff 0%, #9a55ff 100%);
    --purple-gradient-header: linear-gradient(to right, #667eea, #764ba2);
    --card-bg: #ffffff;
    --body-bg: #f2f4f9;
    --sidebar-bg: #ffffff;
    --text-dark: #343a40;
    --text-muted: #6c757d;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-size: 0.925rem;
    overflow-x: hidden;
}

/* Custom Typography & Utility Helpers */
.extra-small {
    font-size: 0.75rem !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

/* Custom Buttons */
.btn-purple-gradient {
    background: var(--purple-gradient-header);
    border: none;
    color: #ffffff !important;
    transition: all 0.2s ease-in-out;
}

.btn-purple-gradient:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Navbar */
.navbar-custom {
    background: var(--purple-gradient-header);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar-brand-text {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.25rem;
    color: #ffffff;
}

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    min-height: calc(100vh - 60px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
    border-right: 1px solid #eef2f6;
}

.sidebar .nav-link {
    color: #565e6c;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    margin: 3px 12px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background: rgba(182, 109, 255, 0.12);
    color: var(--purple-dark);
    font-weight: 600;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
    margin-right: 12px;
}

.sidebar-category-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a0aec0;
    padding: 12px 20px 4px 20px;
    letter-spacing: 0.8px;
}

/* Cards & Widgets */
.card {
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.card-stat {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

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

.card-stat.bg-purple-grad {
    background: var(--purple-gradient);
    color: #ffffff;
}

.card-stat.bg-blue-grad {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: #ffffff;
}

.card-stat.bg-orange-grad {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    color: #ffffff;
}

.card-stat.bg-green-grad {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
}

.card-stat.bg-red-grad {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.85;
}

/* Table Aesthetics */
.table {
    vertical-align: middle;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #edf2f7;
}

/* Priority Pulse Animation */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.animate-pulse {
    animation: pulse-red 1.5s infinite;
}

/* Timeline Layout for Maintenance Digital History */
.timeline {
    position: relative;
    padding: 20px 0 20px;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 55px;
}

.timeline-badge {
    position: absolute;
    left: 4px;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
    color: #ffffff;
    font-size: 14px;
    z-index: 1;
}

.timeline-panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

/* QR Code Printable Tag Layout */
.qr-tag-container {
    width: 320px;
    border: 2px solid #333;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    margin: 20px auto;
    text-align: center;
    font-family: Arial, sans-serif;
}

.qr-tag-header {
    font-weight: 800;
    font-size: 14px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #4a00e0;
}

/* Login Visual Styling */
.login-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    background: #ffffff;
}

.login-illustration {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print Stylesheet for QR Code Tags */
@media print {
    body * {
        visibility: hidden;
    }
    .qr-tag-container, 
    .qr-tag-container * {
        visibility: visible;
    }
    .qr-tag-container {
        position: absolute;
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }

}