/* ==========================================================================
   Complaint Management System - Golden Theme
   ========================================================================== */

/* Base Styles with Golden Theme */
:root {
    --primary-color: #ac9a27;
    --primary-hover: #8b7d1f;
    --secondary-color: #6b7280;
    --secondary-light: rgba(198, 183, 74, 0.15);
    --secondary-dark: #c6b74a;
    --accent-yellow: #fef3c7;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0284c7;
    --light-color: #fefefe;
    --dark-color: #1f2937;
    --muted-color: #6b7280;
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* ==========================================================================
   Logo Styles
   ========================================================================== */

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 250px;
    max-height: 224px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-small {
    max-width: 150px;
    max-height: 134px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-header {
    max-width: 120px;
    max-height: 107px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Access Page Styles
   ========================================================================== */

.access-container { 
    max-width: 500px; 
    margin: 20px auto; 
    padding: 20px; 
}

.user-type-toggle { 
    display: flex; 
    margin-bottom: 30px; 
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow);
}

.toggle-btn { 
    flex: 1; 
    padding: 15px; 
    border: none;
    cursor: pointer; 
    text-align: center; 
    background: white;
    color: var(--muted-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.toggle-btn.active { 
    background: var(--primary-color); 
    color: white; 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    background: var(--accent-yellow);
    color: var(--primary-color);
}

.toggle-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.guest-fields { 
    display: none; 
}

.guest-fields.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > .form-control {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(172, 154, 39, 0.25);
}

.form-floating > .form-control:focus ~ label {
    color: var(--primary-color);
}

.btn-primary { 
    background: var(--primary-color); 
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.user-type-help {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin-top: 10px;
    padding: 15px;
    background: var(--secondary-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.card {
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    margin: 0;
    font-weight: 600;
}

.card-header i {
    margin-right: 10px;
    font-size: 1.2em;
}

.loading {
    display: none;
}

.loading.show {
    display: inline-block;
}

.button-text.hide {
    display: none;
}

/* Features info section */
.features-info {
    background: var(--accent-yellow);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
}

.features-info h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.features-info i {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* ==========================================================================
   Dashboard Styles
   ========================================================================== */

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.dashboard-stats {
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card.primary { border-left-color: var(--primary-color); }
.stat-card.success { border-left-color: var(--success-color); }
.stat-card.warning { border-left-color: var(--warning-color); }
.stat-card.danger { border-left-color: var(--danger-color); }

.stat-card h3 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.action-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.action-card .card-body {
    padding: 30px;
    text-align: center;
}

.action-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.action-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.action-card .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 25px;
}

.action-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-card .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Chat Styles
   ========================================================================== */

.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-placeholder {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-dark));
    color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.chat-placeholder i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.chat-placeholder h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

/* ==========================================================================
   Alert Styles
   ========================================================================== */

.alert {
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    margin: 15px 0;
    box-shadow: var(--shadow);
}

.alert.alert-success {
    background: linear-gradient(45deg, var(--success-color), #10b981);
    color: white;
    border-color: var(--success-color);
}

.alert.alert-danger {
    background: linear-gradient(45deg, var(--danger-color), #ef4444);
    color: white;
    border-color: var(--danger-color);
}

.alert.alert-warning {
    background: linear-gradient(45deg, var(--warning-color), #f59e0b);
    color: white;
    border-color: var(--warning-color);
}

.alert.alert-info {
    background: linear-gradient(45deg, var(--info-color), #3b82f6);
    color: white;
    border-color: var(--info-color);
}

/* ==========================================================================
   Form Enhancements
   ========================================================================== */

.form-control {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(172, 154, 39, 0.25);
    background: white;
}

.form-floating > label {
    color: var(--muted-color);
}

.form-text {
    color: var(--muted-color);
    font-size: 0.85em;
    margin-top: 5px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-dark) 100%);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

/* ==========================================================================
   Header/Navigation Styles
   ========================================================================== */

.navbar {
    background: white;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo-header {
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Debug Styles
   ========================================================================== */

.debug-info {
    background: var(--accent-yellow);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
    color: var(--dark-color);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 576px) {
    .access-container {
        margin: 0 20px;
        padding: 15px;
    }
    
    .toggle-btn {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-header h2 {
        font-size: 1.5em;
    }
    
    .user-type-help {
        padding: 12px;
        font-size: 0.8em;
    }
    
    .features-info {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 2em;
    }
    
    .action-card .card-body {
        padding: 20px;
    }
    
    .action-card i {
        font-size: 2.5em;
    }
    
    .logo {
        max-width: 200px;
        max-height: 179px;
    }
    
    .logo-small {
        max-width: 120px;
        max-height: 107px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 20px 0;
    }
    
    .action-card {
        margin-bottom: 20px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}
.footer-logo {
    max-width: 130px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .btn, .alert-dismissible .btn-close {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .bg-gradient-primary {
        background: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .logo {
        max-width: 150px;
        max-height: 134px;
    }
}