/**
 * OutageScout Unified Theme CSS v2025
 * Complete theme for the entire OutageScout application
 * Primary Colors: Blue (#368eff), Green (#1a7f4d), Gray (#d4d4d4)
 */

/* ============================================
   CSS Variables / Theme Configuration
   ============================================ */
:root {
    /* Primary Brand Colors */
    --os-primary-blue: #368eff;
    --os-primary-green: #1a7f4d;
    --os-primary-blue-dark: #2d7ae6;
    --os-primary-green-dark: #157a47;
    
    /* Background Colors - FIXED */
    --os-bg-primary: linear-gradient(135deg, #2d5aa0 0%, #1a3b5c 50%, #2a4d3a 100%);
    --os-bg-card: #f8f9fa;           /* CHANGED from #d4d4d4 to proper light gray */
    --os-bg-header: linear-gradient(135deg, #368eff 0%, #1a7f4d 100%);
    --os-bg-white: #ffffff;          /* ADDED for better contrast */
    
    /* Text Colors */
    --os-text-primary: #2c2c2c;
    --os-text-white: #ffffff;
    --os-text-muted: rgba(44, 44, 44, 0.7);
    --os-text-dark: #212529;
    
    /* Border Colors */
    --os-border-primary: #c0c0c0;
    --os-border-focus: #368eff;
    --os-border-light: #dee2e6;
    
    /* Message System Colors */
    --os-error: #dc3545;
    --os-error-dark: #b02a37;
    --os-warning: #f57c00;
    --os-warning-dark: #e65100;
    --os-warning-bg: #ffc107;
    --os-success: #198754;
    --os-success-dark: #146c43;
    --os-info: #368eff;
    --os-info-dark: #2d7ae6;
    
    /* Spacing */
    --os-border-radius: 10px;
    --os-border-radius-lg: 20px;
    --os-spacing-sm: 0.5rem;
    --os-spacing-md: 1rem;
    --os-spacing-lg: 2rem;
    
    /* Shadows */
    --os-shadow-sm: 0 4px 12px rgba(0,0,0,0.15);
    --os-shadow-md: 0 10px 20px rgba(0,0,0,0.2);
    --os-shadow-lg: 0 20px 40px rgba(0,0,0,0.25);
    
    /* Transitions */
    --os-transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--os-bg-primary);
    background-size: 200% 200%;
    animation: gradient-shift 20s ease infinite;
    min-height: 100vh;
}

.os-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--os-text-primary);
    line-height: 1.6;
}

.os-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
    background: var(--os-bg-primary);
    background-size: 200% 200%;
    animation: gradient-shift 20s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   Top Navigation Bar
   ============================================ */
.os-top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--os-bg-header);
    box-shadow: var(--os-shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.os-navbar-brand {
    display: flex;
    align-items: center;
    color: var(--os-text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.os-navbar-brand:hover {
    color: var(--os-text-white);
}

.os-navbar-brand i {
    margin-right: 10px;
}

/* Navigation Links */
.os-nav-links {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    margin-right: 2rem;
}

.os-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--os-border-radius);
    transition: var(--os-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--os-text-white);
}

.os-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--os-text-white);
}

.os-nav-link i {
    font-size: 1rem;
}

/* Organization Selector */
.os-org-selector {
    background: rgba(255, 255, 255, 0.1);
    color: var(--os-text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--os-border-radius);
    margin-right: 2rem;
    cursor: pointer;
}

.os-org-selector:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.os-org-selector option {
    background: var(--os-primary-blue);
    color: var(--os-text-white);
}

/* ============================================
   User Badge / Dropdown
   ============================================ */
.os-user-dropdown {
    position: relative;
}

.os-user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--os-border-radius);
    cursor: pointer;
    transition: var(--os-transition);
}

.os-user-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

.os-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--os-primary-green) 0%, var(--os-primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--os-text-white);
}

.os-user-info {
    display: flex;
    flex-direction: column;
    color: var(--os-text-white);
}

.os-user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.os-user-role {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* User Dropdown Menu */
.os-user-chevron {
    color: white;
    font-size: 0.8rem;
}

.os-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: var(--os-border-radius);
    box-shadow: var(--os-shadow-md);
    min-width: 200px;
    display: none;
    z-index: 1001;
}

.os-user-dropdown-menu.show {
    display: block;
}

.os-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--os-text-primary);
    text-decoration: none;
    transition: var(--os-transition);
}

.os-dropdown-item:hover {
    background: var(--os-bg-card);
}

.os-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

/* ============================================
   Main Layout Structure
   ============================================ */
.os-main-layout {
    margin-top: 70px;
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ============================================
   Left Sidebar
   ============================================ */
.os-left-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    box-shadow: var(--os-shadow-sm);
    overflow-y: auto;
}

.os-sidebar-section {
    margin-bottom: 2rem;
}

.os-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--os-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-sidebar-title i {
    color: var(--os-primary-blue);
}

/* Quick Stats Grid */
.os-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.os-stat-item {
    background: var(--os-bg-card);
    padding: 1rem;
    border-radius: var(--os-border-radius);
    text-align: center;
    transition: var(--os-transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.os-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--os-shadow-sm);
}

.os-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--os-primary-blue);
}

.os-stat-label {
    font-size: 0.85rem;
    color: var(--os-text-muted);
    margin-top: 0.25rem;
}

/* Activity/Action Buttons */
.os-activity-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--os-primary-blue) 0%, var(--os-primary-green) 100%);
    color: var(--os-text-white);
    border: none;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--os-border-radius);
    text-decoration: none;
    transition: var(--os-transition);
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

.os-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--os-shadow-md);
    color: var(--os-text-white);
}

.os-activity-btn i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* ============================================
   Main Content Area
   ============================================ */
.os-main-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.os-content-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--os-border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--os-shadow-sm);
}

.os-content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--os-text-primary);
    margin-bottom: 0.5rem;
}

.os-content-subtitle {
    color: var(--os-text-muted);
    margin: 0;
}

/* Content Cards */
.os-content-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--os-border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--os-shadow-sm);
}

.os-content-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--os-text-primary);
}

.os-content-card hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   Card Components (Login & General)
   ============================================ */
.os-card {
    border: none;
    border-radius: var(--os-border-radius-lg);
    box-shadow: var(--os-shadow-lg);
    backdrop-filter: blur(10px);
    background: var(--os-bg-white);
    overflow: hidden;
}

.os-card-header {
    border-radius: var(--os-border-radius-lg) var(--os-border-radius-lg) 0 0 !important;
    padding: var(--os-spacing-lg);
    text-align: center;
    border: none;
    color: var(--os-text-white);
    background: var(--os-bg-header);
}

.os-card-body {
    padding: var(--os-spacing-lg);
}

/* ============================================
   Form Controls
   ============================================ */
.os-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: var(--os-spacing-md);
}

.os-form-label {
    color: var(--os-text-primary);
    font-weight: 600;
    margin-bottom: var(--os-spacing-sm);
    display: block;
    width: 100%;
}

.os-form-control {
    border-radius: var(--os-border-radius);
    border: 2px solid var(--os-border-primary);
    padding: 12px 15px;
    transition: var(--os-transition);
    background: rgba(255, 255, 255, 0.95);
    color: var(--os-text-primary);
    width: 100%;
    box-sizing: border-box;
}

.os-form-control:focus {
    border-color: var(--os-border-focus);
    box-shadow: 0 0 0 0.2rem rgba(54, 142, 255, 0.25);
    background: white;
    outline: none;
}

.os-form-control::placeholder {
    color: var(--os-text-muted);
}

/* Input group styling for password toggle */
.os-input-group {
    display: flex;
    width: 100%;
    position: relative;
}

.os-input-group .os-form-control {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.os-input-group .os-btn {
    border-left: none;
    border-color: var(--os-border-primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: rgba(255, 255, 255, 0.95);
}

/* Two column layout for name fields */
.os-form-row {
    display: flex;
    gap: var(--os-spacing-md);
    width: 100%;
    margin-bottom: var(--os-spacing-md);
}

.os-form-row .os-form-group {
    flex: 1;
    margin-bottom: 0;
}

.os-form-row .os-form-control {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.os-btn {
    border-radius: var(--os-border-radius);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--os-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.os-btn-primary {
    background: linear-gradient(135deg, var(--os-primary-blue) 0%, var(--os-primary-green) 100%);
    color: var(--os-text-white);
}

.os-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--os-shadow-md);
    background: linear-gradient(135deg, var(--os-primary-blue-dark) 0%, var(--os-primary-green-dark) 100%);
    color: var(--os-text-white);
}

.os-btn-outline-primary {
    border: 2px solid var(--os-primary-blue);
    color: var(--os-primary-blue);
    background: rgba(255, 255, 255, 0.15);
}

.os-btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--os-primary-blue) 0%, var(--os-primary-green) 100%);
    color: var(--os-text-white);
    border-color: transparent;
}

.os-btn-link {
    color: var(--os-primary-blue);
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.os-btn-link:hover {
    color: var(--os-primary-green);
    text-decoration: underline;
}

.os-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.os-btn .fas, .os-btn .far, .os-btn .fab {
    margin-right: var(--os-spacing-sm);
}

/* ============================================
   Loading States
   ============================================ */
.os-loading-spinner {
    display: none;
}

.os-btn.loading .os-loading-spinner {
    display: inline;
}

.os-btn.loading .os-btn-text {
    display: none;
}

.os-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--os-primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Message System / Alerts
   ============================================ */
.os-alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: var(--os-spacing-md);
    font-weight: 500;
    box-shadow: var(--os-shadow-sm);
    border: none;
}

.os-alert i {
    margin-right: var(--os-spacing-sm);
}

/* Error Messages */
.os-alert-error {
    background: linear-gradient(135deg, var(--os-error) 0%, var(--os-error-dark) 100%);
    color: var(--os-text-white);
}

.os-text-error {
    color: var(--os-error);
}

.os-text-error-dark {
    color: var(--os-error-dark);
}

.os-border-error {
    border-color: var(--os-error) !important;
}

/* Warning Messages */
.os-alert-warning {
    background: linear-gradient(135deg, var(--os-warning-bg) 0%, #e0a800 100%);
    color: #212529;
}

.os-text-warning {
    color: var(--os-warning);
}

.os-text-warning-dark {
    color: var(--os-warning-dark);
}

.os-border-warning {
    border-color: var(--os-warning) !important;
}

/* Success Messages */
.os-alert-success {
    background: linear-gradient(135deg, var(--os-success) 0%, var(--os-success-dark) 100%);
    color: var(--os-text-white);
}

.os-text-success {
    color: var(--os-success);
}

.os-text-success-dark {
    color: var(--os-success-dark);
}

.os-border-success {
    border-color: var(--os-success) !important;
}

/* Info Messages */
.os-alert-info {
    background: linear-gradient(135deg, var(--os-info) 0%, var(--os-info-dark) 100%);
    color: var(--os-text-white);
}

.os-text-info {
    color: var(--os-info);
}

.os-text-info-dark {
    color: var(--os-info-dark);
}

.os-border-info {
    border-color: var(--os-info) !important;
}

/* ============================================
   Status Indicators
   ============================================ */
.os-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-status-time {
    font-size: 0.85rem;
}

.os-status-operational {
    background: #d4f4dd;
    border-left: 4px solid #28a745;
}

.os-status-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.os-status-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* ============================================
   Badge System
   ============================================ */
.os-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.os-badge-success {
    background-color: var(--os-success);
    color: var(--os-text-white);
}

.os-badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.os-badge-danger {
    background-color: #dc3545;
    color: var(--os-text-white);
}

.os-badge-secondary {
    background-color: #6c757d;
    color: var(--os-text-white);
}

.os-badge-admin {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
}

.os-badge-info {
    background-color: var(--os-info);
    color: var(--os-text-white);
}

/* ============================================
   Mobile Navigation
   ============================================ */
.os-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--os-text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.os-mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--os-shadow-md);
    z-index: 999;
}

.os-mobile-nav-dropdown.show {
    display: block;
}

.os-mobile-nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--os-text-primary);
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--os-transition);
}

.os-mobile-nav-item:hover {
    background: var(--os-bg-card);
}

.os-mobile-nav-item.active {
    background: var(--os-bg-card);
    color: var(--os-primary-blue);
    font-weight: 600;
}

/* ============================================
   Layout Utilities
   ============================================ */
.os-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.os-text-center {
    text-align: center;
}

.os-text-muted {
    color: var(--os-text-muted);
    opacity: 0.7;
}

.os-text-primary {
    color: var(--os-primary-blue) !important;
}

/* Margin utilities */
.os-mb-0 { margin-bottom: 0; }
.os-mb-1 { margin-bottom: 0.25rem; }
.os-mb-2 { margin-bottom: 0.5rem; }
.os-mb-3 { margin-bottom: 1rem; }
.os-mb-4 { margin-bottom: 1.5rem; }
.os-mb-5 { margin-bottom: 3rem; }

.os-mt-0 { margin-top: 0; }
.os-mt-1 { margin-top: 0.25rem; }
.os-mt-2 { margin-top: 0.5rem; }
.os-mt-3 { margin-top: 1rem; }
.os-mt-4 { margin-top: 1.5rem; }
.os-mt-5 { margin-top: 3rem; }

/* Padding utilities */
.os-p-3 { padding: var(--os-spacing-md); }
.os-p-4 { padding: var(--os-spacing-lg); }

/* Width utilities */
.os-w-100 { width: 100%; }

/* Display utilities */
.os-d-flex { display: flex; }
.os-align-items-center { align-items: center; }
.os-justify-content-center { justify-content: center; }
.os-justify-content-between { justify-content: space-between; }

/* ============================================
   Special Components
   ============================================ */
.os-password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
    transition: var(--os-transition);
    background-color: #e9ecef;
}

.os-strength-weak { 
    background: linear-gradient(90deg, var(--os-error) 0%, var(--os-error) 100%); 
}

.os-strength-medium { 
    background: linear-gradient(90deg, var(--os-warning-bg) 0%, var(--os-warning-bg) 100%); 
}

.os-strength-strong { 
    background: linear-gradient(90deg, var(--os-success) 0%, var(--os-success) 100%); 
}

.os-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.os-divider::before,
.os-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.os-divider span {
    padding: 0 15px;
    color: var(--os-text-muted);
    font-size: 14px;
}

.os-info-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: var(--os-border-radius);
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: var(--os-spacing-md);
}

.os-info-box .os-verification-icon {
    flex-shrink: 0;
    font-size: 2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.os-info-box .os-verification-icon i {
    font-size: 2rem;
}

.os-info-box > div:last-child {
    flex: 1;
}

/* ============================================
   Animations
   ============================================ */
.os-stage {
    display: none;
}

.os-stage.active {
    display: block;
    animation: os-fade-in-up 0.5s ease-out;
}

@keyframes os-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.os-verification-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.os-success-icon {
    color: var(--os-success);
    animation: os-bounce 1s ease-in-out;
}

.os-error-icon {
    color: var(--os-error);
    animation: os-shake 0.5s ease-in-out;
}

@keyframes os-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes os-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ============================================
   Password Field Animations
   ============================================ */
.os-password-field-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.os-password-field-visible {
    opacity: 1;
    max-height: 100px;
    transition: all 0.3s ease;
}

/* ============================================
   Admin-Specific Components
   ============================================ */
.os-admin-header {
    background: var(--os-bg-header);
    color: var(--os-text-white);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--os-border-radius-lg) var(--os-border-radius-lg);
}

.os-stats-card {
    background: var(--os-bg-card);
    border-radius: var(--os-border-radius);
    padding: 1.5rem;
    box-shadow: var(--os-shadow-sm);
    margin-bottom: 1rem;
    transition: var(--os-transition);
}

.os-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--os-shadow-md);
}

.os-search-container {
    background: var(--os-bg-card);
    border-radius: var(--os-border-radius);
    padding: 1.5rem;
    box-shadow: var(--os-shadow-sm);
    margin-bottom: 2rem;
}

.os-table-container {
    background: var(--os-bg-card);
    border-radius: var(--os-border-radius);
    box-shadow: var(--os-shadow-sm);
    overflow: hidden;
}

.os-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--os-border-radius);
    background: linear-gradient(135deg, var(--os-primary-blue) 0%, #495057 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--os-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.os-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--os-shadow-sm);
    color: white;
    background: linear-gradient(135deg, var(--os-primary-blue-dark) 0%, #343a40 100%);
}

.os-action-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .os-left-sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .os-nav-links, 
    .os-org-selector {
        display: none;
    }
    
    /* Show mobile toggle */
    .os-nav-toggle {
        display: block;
    }
    
    /* Hide sidebar on mobile by default */
    .os-left-sidebar {
        display: none;
    }
    
    /* Adjust main content */
    .os-main-content {
        padding: 1rem;
    }
    
    /* Adjust user badge on mobile */
    .os-user-info {
        display: none;
    }
    
    /* Login page adjustments */
    .os-card-header {
        padding: 1.5rem 1rem;
    }
    
    .os-card-body {
        padding: 1.5rem 1rem;
    }
    
    .os-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .os-form-row {
        flex-direction: column;
        gap: 0;
    }

    .os-form-row .os-form-group {
        margin-bottom: var(--os-spacing-md);
    }
    
    /* Stack cards on mobile */
    .row > [class*='col-'] {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .os-navbar-brand {
        font-size: 1.2rem;
    }
    
    .os-content-header {
        padding: 1rem;
    }
    
    .os-content-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   Bootstrap Overrides (if needed)
   ============================================ */
.os-bootstrap-override .form-control {
    border-radius: var(--os-border-radius);
    border: 2px solid var(--os-border-primary);
    padding: 12px 15px;
    transition: var(--os-transition);
    background: rgba(255, 255, 255, 0.95);
}

.os-bootstrap-override .form-control:focus {
    border-color: var(--os-border-focus);
    box-shadow: 0 0 0 0.2rem rgba(54, 142, 255, 0.25);
    background: white;
}

.os-bootstrap-override .btn {
    border-radius: var(--os-border-radius);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--os-transition);
}

.os-bootstrap-override .alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--os-shadow-sm);
}

/* TEMPORARY CSS REMOVED - Refactoring complete */


/* / TODO: Evaluate and integrate these items with their originals above (if they exist).
/  Adding for simple overwrite fixes for now.
/ */

.os-input-group .os-btn {
    border-left: none;
    border-color: var(--os-border-primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 15px; /* Match input padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px; /* Ensure button is wide enough */
}

.os-input-group .os-btn:hover {
    background: rgba(54, 142, 255, 0.1);
    border-color: var(--os-border-focus);
}

.os-input-group .os-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(54, 142, 255, 0.25);
}

.os-input-group .os-btn i {
    color: var(--os-text-muted);
    transition: var(--os-transition);
}

.os-input-group .os-btn:hover i {
    color: var(--os-primary-blue);
}

/* Fix 3: Ensure proper card styling */
.os-card {
    border: none;
    border-radius: var(--os-border-radius-lg);
    box-shadow: var(--os-shadow-lg);
    backdrop-filter: blur(10px);
    background: var(--os-bg-white); /* Use white instead of gray */
    overflow: hidden;
}

/* Fix 4: Social button styling improvements */
.social-btn {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(108, 117, 125, 0.1) !important;
    color: var(--os-text-muted) !important;
}

/* Fix 5: Form validation states */
.os-form-control.is-invalid {
    border-color: var(--os-error);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.os-form-control.is-valid {
    border-color: var(--os-success);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Fix 6: Enhanced loading state */
.os-btn.loading {
    position: relative;
    pointer-events: none;
}

.os-btn.loading .os-loading-spinner {
    display: inline-block;
}

.os-btn.loading .os-btn-text {
    display: none;
}

/* Fix 7: Better responsive input groups */
@media (max-width: 480px) {
    .os-input-group .os-btn {
        min-width: 40px;
        padding: 10px;
    }
    
    .os-input-group .os-btn i {
        font-size: 0.9rem;
    }
}

/* Fix 8: Debug mode enhancements */
.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    max-height: 400px;
    overflow-y: auto;
}

.debug-info h6 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-family: 'Segoe UI', sans-serif;
}

.debug-success { color: #198754; }
.debug-error { color: #dc3545; }
.debug-warning { color: #fd7e14; }

/* Fix 9: Better troubleshooting tips styling */
.troubleshooting-tips {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(54, 142, 255, 0.2);
    border-radius: var(--os-border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.troubleshooting-tips h6 {
    color: var(--os-primary-blue);
    margin-bottom: 0.75rem;
}

.troubleshooting-tips ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.troubleshooting-tips li {
    margin-bottom: 0.25rem;
    color: var(--os-text-muted);
}

/* Fix 10: Enhanced button hover effects */
.os-btn-link:hover {
    color: var(--os-primary-green);
    text-decoration: underline;
    transition: var(--os-transition);
}

/* Fix 11: Form row improvements for better spacing */
.os-form-row {
    display: flex;
    gap: var(--os-spacing-md);
    width: 100%;
    margin-bottom: var(--os-spacing-md);
}

.os-form-row .os-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Fix 12: Better password strength indicator positioning */
.os-password-strength {
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 3px;
    transition: var(--os-transition);
    background-color: #e9ecef;
    width: 100%;
}

/* Fix 13: Improved info box styling */
.os-info-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: var(--os-border-radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: var(--os-spacing-md);
}

.os-info-box .os-verification-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(54, 142, 255, 0.1);
}

.os-info-box .os-verification-icon i {
    font-size: 1.25rem;
    color: var(--os-primary-blue);
}
