/* Custom Premium Black, White, and Yellow Theme for FixFone */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #facc15; /* Vibrant Yellow (Amber-400) */
    --primary-hover: #eab308; /* Slightly darker Yellow (Amber-500) */
    --primary-dark: #ca8a04; /* Darker Yellow (Amber-600) */
    --bg-dark: #09090b; /* Zinc 950 (Black background) */
    --bg-dark-card: #18181b; /* Zinc 900 */
    --surface: #ffffff;
    --muted: #71717a;
    --border: #e4e4e7;
    --text-dark: #09090b;
    --text-light: #ffffff;
}

body {
    background: linear-gradient(135deg, #fcfcfc 0%, #f4f4f5 100%) !important;
    color: var(--text-dark) !important;
    font-family: 'Plus Jakarta Sans', "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Navbar */
.top-nav {
    background: var(--bg-dark) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #27272a !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 0.75rem 1.5rem;
}

.top-nav .navbar-brand {
    color: var(--primary) !important;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.4rem;
}

.top-nav .nav-link {
    color: #e4e4e7 !important;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.6rem 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav .nav-link:hover, 
.top-nav .nav-link.active {
    background: #27272a !important;
    color: var(--primary) !important;
}

/* Override outline primary buttons specifically inside the top-nav to look yellow/white */
.top-nav .btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background-color: transparent !important;
}
.top-nav .btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #000000 !important;
}

/* Cards */
.card {
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.02) !important;
    background: var(--surface) !important;
    transition: all 0.3s ease;
}

.card-header {
    border-bottom: 0 !important;
    font-weight: 700;
    color: var(--text-dark);
}

.section-card {
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
    border-color: var(--bg-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 9, 11, 0.05);
}

/* Buttons */
.btn {
    border-radius: 999px !important;
    padding: 0.65rem 1.4rem !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Primary Button is Yellow with black text */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.15) !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.25) !important;
}

/* Standard Outline primary buttons (on white cards/backgrounds) are dark/black for contrast */
.btn-outline-primary {
    border-color: var(--bg-dark) !important;
    color: var(--bg-dark) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus, 
.btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #000000 !important;
}

/* Secondary/Outline Buttons */
.btn-outline-secondary {
    border-color: #d4d4d8 !important;
    color: var(--bg-dark) !important;
    background-color: #ffffff !important;
}

.btn-outline-secondary:hover, 
.btn-outline-secondary:focus, 
.btn-outline-secondary:active {
    background-color: var(--bg-dark) !important;
    border-color: var(--bg-dark) !important;
    color: #ffffff !important;
}

.btn-outline-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.btn-outline-success:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* Form Controls & Inputs */
.form-control, .form-select {
    border-radius: 12px !important;
    border: 1px solid #d4d4d8 !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bg-dark) !important;
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08) !important;
}

/* File Input Custom Styling */
.form-control[type="file"] {
    background-color: #ffffff !important;
    padding: 0.45rem 0.75rem !important;
}

.form-control[type="file"]::file-selector-button {
    background-color: #f4f4f5 !important;
    color: #18181b !important;
    border: 0 !important;
    border-right: 1px solid #d4d4d8 !important;
    border-radius: 8px 0 0 8px !important;
    padding: 0.35rem 0.9rem !important;
    margin-top: -0.2rem !important;
    margin-left: -0.5rem !important;
    margin-right: 0.75rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #e4e4e7 !important;
}

/* Hero Section: Dark Black with yellow details */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1e24 100%) !important;
    color: var(--text-light) !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #27272a !important;
}

.hero h2 {
    font-weight: 800;
}

.hero p {
    color: #a1a1aa !important;
}

/* Badges */
.badge.bg-light.text-dark {
    background-color: var(--primary) !important;
    color: #000000 !important;
    font-weight: 700;
}

/* Lists and Tables */
.list-group-item {
    border-color: #f4f4f5 !important;
}

.table {
    border-color: var(--border) !important;
}

.table th {
    font-weight: 700;
    color: var(--muted) !important;
}

/* Login Page */
body.login-page {
    background: linear-gradient(145deg, #09090b 0%, #18181b 45%, #27272a 100%) !important;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

body.login-page::before,
body.login-page::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.35;
}

body.login-page::before {
    width: 420px;
    height: 420px;
    background: var(--primary);
    top: -120px;
    right: -80px;
}

body.login-page::after {
    width: 320px;
    height: 320px;
    background: #52525b;
    bottom: -100px;
    left: -60px;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 1.5rem;
}

.login-card {
    background: rgba(24, 24, 27, 0.92) !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.login-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

.login-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.login-brand span {
    color: var(--primary);
}

.login-subtitle {
    color: #a1a1aa !important;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

.login-form .form-label {
    color: #e4e4e7 !important;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
}

.login-form .form-control {
    background-color: #09090b !important;
    border-color: #3f3f46 !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
}

.login-form .form-control::placeholder {
    color: #71717a;
}

.login-form .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15) !important;
}

.login-alert {
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
}

.login-footer {
    color: #71717a;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1.5rem;
}
