/* HUBBILLS Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.auth-brand-side {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(0, 86, 179, 0.9) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.auth-brand-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.brand-logo img {
    max-height: 80px;
    margin-bottom: 20px;
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 40px 20px;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.auth-form .form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.auth-form .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.auth-form .btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.back-to-login {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-login:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Language Selector */
.language-selector {
    text-align: center;
}

.language-option {
    cursor: pointer;
}

/* Dashboard Styles */
.main-content {
    padding-top: 20px;
    min-height: calc(100vh - 120px);
}

.auth-main {
    padding: 0;
}

.dashboard-container {
    padding: 0 15px;
}

.dashboard-header {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.dashboard-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.stat-card-body {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
}

.stat-icon i {
    font-size: 1.8rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.stat-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 500;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
}

.activity-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    width: 2px;
    height: calc(100% + 10px);
    background-color: #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content h6 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.activity-content p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Security Logs */
.security-logs {
    max-height: 300px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.log-item:last-child {
    border-bottom: none;
}

.log-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-content {
    flex: 1;
}

.log-action {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    text-transform: capitalize;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #f1f3f4;
    padding: 20px 25px;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    margin: 0 2px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Toast Customizations */
.toast {
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-brand-side {
        display: none;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .stat-card-body {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 20px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Custom Scrollbar */
.security-logs::-webkit-scrollbar {
    width: 6px;
}

.security-logs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.security-logs::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.security-logs::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

