/* SecuriRota Custom Styles - Matching Original Theme */

/* CSS Variables - Original SecuriRota Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-width: 220px;
    --header-height: 60px;
    --primary-blue: #4f46e5;
    --primary-blue-dark: #3730a3;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-md: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 4px 8px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-xl: 0 8px 16px -4px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.06);
}

/* General Styles */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar Styles - Original SecuriRota Theme */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand:hover {
    color: #fff;
    text-decoration: none;
}

.brand-text {
    margin-left: 0.5rem;
}

.sidebar-body {
    flex: 1;
    padding: 0.5rem 0 1rem;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
}

.user-info {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin: 0.125rem 0;
    margin-right: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    font-weight: 500;
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-left: 3px solid #60a5fa;
    color: white;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.15);
    text-decoration: none;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(167, 139, 250, 0.3) 100%);
    border-left: 3px solid #60a5fa;
    color: white;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.2);
}

.nav-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

.nav-text {
    flex: 1;
}

/* Navigation Section Styles */
.nav-section {
    margin: 1.5rem 0 0.5rem 0;
    padding: 0 1rem;
}

.nav-section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.nav-section-title i {
    opacity: 0.7;
}

/* Submenu Styles */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.submenu .nav-link {
    padding-left: 3.5rem;
    font-size: 0.8rem;
    border-radius: 0;
}

.submenu-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.has-submenu.active .submenu-arrow {
    transform: rotate(90deg);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

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

.content-area {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Top Navigation */
.navbar {
    box-shadow: var(--shadow-md);
    background: white !important;
    border-bottom: 1px solid var(--gray-200);
}

.navbar .nav-link {
    color: var(--gray-700);
}

/* Buttons - Original Theme Colors */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.btn-warning {
    background-color: var(--warning-yellow);
    border-color: var(--warning-yellow);
}

.btn-danger {
    background-color: var(--danger-red);
    border-color: var(--danger-red);
}

/* Cards - Original Theme */
.card {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-800);
}

/* Statistics Cards - Original Gradients */
.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-yellow) 0%, #d97706 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

/* Tables */
.table th {
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-200);
}

/* Alerts - Original Theme Colors */
.alert {
    border-left: 4px solid;
    border-radius: 8px;
}

.alert-success {
    border-left-color: var(--success-green);
    background-color: #f0fdf4;
}

.alert-danger {
    border-left-color: var(--danger-red);
    background-color: #fef2f2;
}

.alert-warning {
    border-left-color: var(--warning-yellow);
    background-color: #fffbeb;
}

.alert-info {
    border-left-color: #06b6d4;
    background-color: #f0f9ff;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1025;
    display: none;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Badge positioning */
.nav-link .badge {
    font-size: 0.7rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Status indicators - Original Theme Colors */
.status-active {
    color: var(--success-green);
}

.status-inactive {
    color: var(--gray-500);
}

.status-suspended {
    color: var(--danger-red);
}

.status-pending {
    color: var(--warning-yellow);
}

.status-confirmed {
    color: var(--success-green);
}

.status-completed {
    color: #06b6d4;
}

.status-cancelled {
    color: var(--danger-red);
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 500;
}

/* Buttons */
.btn {
    font-weight: 500;
}

.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.btn-primary:hover {
    background-color: #34495e;
    border-color: #34495e;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

/* Dashboard Stats Cards */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

/* Alerts */
.alert {
    border-left: 4px solid;
    border-radius: 0.5rem;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Forms */
.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Status indicators */
.status-active {
    color: #28a745;
}

.status-inactive {
    color: #6c757d;
}

.status-suspended {
    color: #dc3545;
}

.status-pending {
    color: #ffc107;
}

.status-confirmed {
    color: #28a745;
}

.status-completed {
    color: #17a2b8;
}

.status-cancelled {
    color: #dc3545;
}