/**
 * ONSIDE CREWLINK - GLOBAL STYLESHEET
 * Use the :root variables below to change the entire site's theme!
 */
:root {
    /* 1. Fonts */
    --font-family: 'Inter', sans-serif;
    
    /* 2. Main App Colors */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    
    /* 3. Navbar Brand Colors (Change this gradient to change the top bar) */
    --nav-bg: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    
    /* 4. Login & Signup Page Background */
    --login-bg: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    
    /* 5. UI Elements (Rounded corners and shadows) */
    --card-radius: 12px;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.04);
    --input-radius: 8px;
    --input-border: #e2e8f0;
    --input-focus: #3b82f6;
    --input-focus-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}

/* =======================================
   GLOBAL LAYOUT
   ======================================= */
body { 
    font-family: var(--font-family); 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    margin: 0;
}

body.dark-mode-page { background: var(--login-bg); }

.main-content { flex: 1; }
.main-content.center-content { display: flex; align-items: center; justify-content: center; }

/* =======================================
   NAVIGATION
   ======================================= */
.navbar { background: var(--nav-bg) !important; padding: 1rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.navbar-brand { font-weight: 700; letter-spacing: 0.5px; }

/* =======================================
   CARDS & LISTS
   ======================================= */
.card { border: none; border-radius: var(--card-radius); box-shadow: var(--card-shadow); transition: transform 0.2s ease; overflow: hidden; }
.list-group-item { border: none; border-bottom: 1px solid #f1f5f9; padding: 1.25rem; transition: background 0.2s; }
.job-item:hover { background-color: #f8fafc; }

/* =======================================
   FORMS, INPUTS & BUTTONS
   ======================================= */
.btn { border-radius: var(--input-radius); font-weight: 500; }
.form-control, .form-select { border-radius: var(--input-radius); border-color: var(--input-border); }
.form-control:focus, .form-select:focus { border-color: var(--input-focus); box-shadow: var(--input-focus-shadow); }

/* Custom dark translucent inputs for Login */
.form-control-dark {
    border-radius: var(--input-radius); padding: 0.8rem 1rem; 
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; 
}
.form-control-dark:focus { background: rgba(255, 255, 255, 0.15); border-color: var(--input-focus); color: #fff; box-shadow: var(--input-focus-shadow); }
.form-control-dark::placeholder { color: rgba(255, 255, 255, 0.5); }
.btn-login { background-color: #2563eb; color: white; border: none; border-radius: var(--input-radius); padding: 0.8rem; font-weight: 600; font-size: 1rem; transition: background 0.2s; }
.btn-login:hover { background-color: #1d4ed8; color: white; transform: translateY(-1px); }

/* =======================================
   CUSTOM UI ELEMENTS
   ======================================= */
.badge { font-weight: 600; padding: 0.5em 0.8em; border-radius: 6px; }
.icon-square { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; }
.bg-light-warning { background-color: #fffbeb !important; border-left: 4px solid #f59e0b !important; }

.role-scroll-box { max-height: 140px; overflow-y: auto; background: #f8fafc; padding: 10px; border-radius: var(--input-radius); border: 1px solid var(--input-border); }
.role-scroll-box.tall { max-height: 180px; padding: 15px; }

.login-card { max-width: 400px; width: 100%; padding: 2rem; }
.signup-card { max-width: 600px; width: 100%; border-radius: 16px; background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

/* =======================================
   ADMIN TAB UI & WYSIWYG
   ======================================= */
.nav-tabs { border-bottom: 2px solid #e2e8f0; gap: 1rem; }
.nav-tabs .nav-link { 
    border: none; border-bottom: 3px solid transparent; border-radius: 0; 
    color: #64748b; font-weight: 600; padding: 0.75rem 0.5rem; 
    transition: all 0.2s ease; background: transparent; 
}
.nav-tabs .nav-link:hover { 
    background-color: transparent; color: #0f172a; border-bottom-color: #cbd5e1; 
}
.nav-tabs .nav-link.active { 
    background-color: transparent !important; color: #2563eb !important; 
    border-bottom: 3px solid #2563eb !important; box-shadow: none !important; 
}
.ql-toolbar.ql-snow { border-top-left-radius: 8px; border-top-right-radius: 8px; border-color: var(--input-border); background: #f8fafc; }
.ql-container.ql-snow { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border-color: var(--input-border); }
.ql-editor { font-family: var(--font-family); font-size: 0.95rem; }

/* =======================================
   GLOBAL FOOTER
   ======================================= */
footer.bg-dark {
    /* Optional: subtly matches your dark theme rather than default black */
    background-color: var(--text-dark) !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* This forces Bootstrap's "text-muted" to be a readable silver on dark footers */
footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
