/* ===================================
   Jebo Connect Portal Styles
   =================================== */

/* Color Variables */
:root {
    --jebo-primary: #2c3e50;
    --jebo-primary-dark: #1a252f;
    --jebo-primary-light: #34495e;
    --jebo-accent: #3498db;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* Login Page Background */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Charcoal Theme */
.bg-orange {
    background-color: var(--jebo-primary) !important;
}

.text-orange {
    color: var(--jebo-primary) !important;
}

.btn-orange {
    background-color: var(--jebo-primary);
    color: white;
    border: none;
}

.btn-orange:hover {
    background-color: var(--jebo-primary-dark);
    color: white;
}

.btn-orange:focus {
    background-color: var(--jebo-primary-dark);
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

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

/* Module Card Styles */
.module-card {
    border: 2px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--jebo-primary);
}

.module-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.module-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jebo-primary);
    margin-bottom: 0.5rem;
}

.module-card .card-text {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.module-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.module-card.disabled:hover {
    transform: none;
    border-color: transparent;
}

/* Badge Styles */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-active {
    background-color: #28a745;
    color: white;
}

.badge-inactive {
    background-color: #6c757d;
    color: white;
}

/* Navbar Styles */
.navbar-orange {
    background-color: var(--jebo-primary);
}

.navbar-orange .navbar-brand,
.navbar-orange .nav-link {
    color: white !important;
}

.navbar-orange .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--jebo-accent);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.input-group-text {
    background-color: var(--light-bg);
    border-color: #dee2e6;
}

/* Table Styles */
.table thead th {
    background-color: var(--light-bg);
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid var(--jebo-primary);
}

.table tbody tr:hover {
    background-color: rgba(44, 62, 80, 0.05);
}

/* Modal Styles */
.modal-header {
    background-color: var(--jebo-primary);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Permissions Container */
#permissionsContainer {
    background-color: var(--light-bg);
    max-height: 300px;
    overflow-y: auto;
}

.permission-item {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item:hover {
    background-color: white;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Spinner Styles */
.spinner-border-orange {
    color: var(--jebo-primary);
}

/* Button Group Styles */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .module-icon {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Status Indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot.active {
    background-color: #28a745;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--jebo-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jebo-primary-dark);
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Shadow Utilities */
.shadow-sm-hover:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* User Management - Disabled Users */
.user-disabled {
    opacity: 0.6;
    background-color: #f8f9fa !important;
}

.user-disabled td {
    color: #6c757d !important;
}

.user-disabled .badge-inactive {
    background-color: #6c757d;
    color: white;
}

