/* ======================================
   GLOBAL STYLES - VersaCore Update Portal
   ====================================== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* Default body styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e !important;
    color: white !important;
}

/* ======================================
   LANDING PAGE STYLES
   ====================================== */
body.landing-page {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('/images/background.jpg'),
        linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 50%, #1e1e1e 100%) !important;
    background-size: cover, cover, cover !important;
    background-position: center, center, center !important;
    background-attachment: fixed, fixed, fixed !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
}

/* Hide navbar and footer on landing page */
body.landing-page .navbar {
    display: none !important;
}

body.landing-page .footer {
    display: none !important;
}

body.landing-page .container-fluid {
    padding: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
}

/* ======================================
   VERSACORE BRAND COLORS
   ====================================== */
:root {
    --versacore-orange: #e79215;
    --versacore-orange-dark: #d67f00;
    --versacore-orange-light: #f5a623;
}

/* ======================================
   BUTTON STYLES
   ====================================== */
.btn-base {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.btn-base:hover {
    transform: translateY(-1px);
}

.btn-base:active {
    transform: translateY(0);
}

.btn-versacore {
    background: linear-gradient(135deg, #e79215, #d67f00) !important;
    color: white !important;
    border: none !important;
}

.btn-versacore:hover {
    background: linear-gradient(135deg, #d67f00, #c06d00) !important;
    color: white !important;
}

.btn-primary {
    background-color: #e79215 !important;
    color: white !important;
    border-color: #e79215 !important;
}

.btn-primary:hover {
    background-color: #d67f00 !important;
    border-color: #d67f00 !important;
}

.btn-success {
    background-color: #28a745 !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #218838 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.btn-warning:hover {
    background-color: #e0a800 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: #5a6268 !important;
}

.btn-outline-primary {
    color: #e79215 !important;
    border-color: #e79215 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #e79215 !important;
    color: white !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
}

.btn-outline-success {
    color: #28a745 !important;
    border-color: #28a745 !important;
    background-color: transparent !important;
}

.btn-outline-success:hover {
    background-color: #28a745 !important;
    color: white !important;
}

/* ======================================
   NAVIGATION
   ====================================== */
.navbar {
    background-color: #1e1e1e !important;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-size: 1.2rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #fff !important;
}

.navbar-logo {
    height: 32px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
}

.brand-text {
    color: #e79215 !important;
    font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: #e79215 !important;
    color: white !important;
}

.navbar-text {
    color: rgba(255,255,255,.85) !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: #333 !important;
    border: 1px solid #444 !important;
}

.dropdown-item {
    color: white !important;
}

.dropdown-item:hover {
    background-color: #e79215 !important;
    color: white !important;
}

.dropdown-divider {
    border-color: #444 !important;
}

/* ======================================
   CARDS
   ====================================== */
.card {
    background-color: #2d2d2d !important;
    color: white !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
}

.card-header {
    background-color: #333 !important;
    color: white !important;
    border-bottom: 1px solid #444 !important;
}

.card-body {
    background-color: #2d2d2d !important;
}

.card-footer {
    background-color: #333 !important;
    border-top: 1px solid #444 !important;
}

/* Light theme cards for landing page */
.card.bg-light,
body.landing-page .nav-card {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

/* ======================================
   FORMS AND INPUTS
   ====================================== */
.form-control {
    background-color: #333 !important;
    color: white !important;
    border: 1px solid #555 !important;
}

.form-control:focus {
    background-color: #333 !important;
    color: white !important;
    border-color: #e79215 !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 146, 21, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-select {
    background-color: #333 !important;
    color: white !important;
    border: 1px solid #555 !important;
}

.form-select:focus {
    border-color: #e79215 !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 146, 21, 0.25) !important;
}

.form-label {
    color: white !important;
}

.form-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-check-input {
    background-color: #333 !important;
    border-color: #555 !important;
}

.form-check-input:checked {
    background-color: #e79215 !important;
    border-color: #e79215 !important;
}

.form-check-label {
    color: white !important;
}

/* Input group styling */
.input-group-text {
    background-color: #444 !important;
    color: white !important;
    border: 1px solid #555 !important;
}

/* ======================================
   TABLES
   ====================================== */
.table {
    background-color: #2d2d2d !important;
    color: white !important;
}

.table th {
    background-color: #333 !important;
    color: white !important;
    border-color: #444 !important;
}

.table td {
    background-color: #2d2d2d !important;
    color: white !important;
    border-color: #444 !important;
}

.table-hover tbody tr:hover {
    background-color: #3a3a3a !important;
}

.table-dark {
    background-color: #1e1e1e !important;
}

.table-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
}

/* ======================================
   ALERTS
   ====================================== */
.alert {
    border-radius: 8px !important;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2) !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2) !important;
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

.alert-primary {
    background-color: rgba(231, 146, 21, 0.2) !important;
    border-color: #e79215 !important;
    color: #e79215 !important;
}

/* ======================================
   BADGES
   ====================================== */
.badge {
    font-weight: 500;
}

/* ======================================
   MODALS
   ====================================== */
.modal-content {
    background-color: #2d2d2d !important;
    color: white !important;
    border: 1px solid #444 !important;
}

.modal-header {
    background-color: #333 !important;
    border-bottom: 1px solid #444 !important;
}

.modal-footer {
    background-color: #333 !important;
    border-top: 1px solid #444 !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
    margin-top: auto;
    padding: 15px 0;
    background-color: #1e1e1e !important;
    border-top: 1px solid #333;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.copyright-text {
    color: white !important;
    font-weight: 500;
}

/* ======================================
   BREADCRUMBS
   ====================================== */
.breadcrumb {
    background-color: transparent !important;
}

.breadcrumb-item a {
    color: #e79215 !important;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ======================================
   PAGINATION
   ====================================== */
.pagination .page-item .page-link {
    background-color: #333 !important;
    color: white !important;
    border-color: #444 !important;
}

.pagination .page-item.active .page-link {
    background-color: #e79215 !important;
    border-color: #e79215 !important;
}

/* ======================================
   LANDING PAGE SPECIFIC STYLES
   ====================================== */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.landing-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.welcome-text {
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.welcome-description {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0 auto;
}

/* Navigation cards for landing page */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.nav-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: #333 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: #e79215;
    color: #333 !important;
    text-decoration: none;
}

.nav-card-icon {
    font-size: 2.5rem;
    color: #e79215;
    margin-bottom: 1rem;
}

.nav-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.nav-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Get Started button */
.get-started-btn {
    background: linear-gradient(135deg, #e79215, #d67f00);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 146, 21, 0.3);
    margin-top: 1rem;
    display: inline-block;
}

.get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 146, 21, 0.4);
    color: white;
    text-decoration: none;
}

/* ======================================
   LINKS
   ====================================== */
a {
    color: #e79215;
}

a:hover {
    color: #d67f00;
}

/* ======================================
   UTILITIES
   ====================================== */
.text-primary {
    color: #e79215 !important;
}

.bg-primary {
    background-color: #e79215 !important;
}

.bg-dark {
    background-color: #1e1e1e !important;
}

.border-primary {
    border-color: #e79215 !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

.border-success {
    border-color: #28a745 !important;
}

code {
    background-color: #333 !important;
    color: #f8f8f2 !important;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Monospace font */
.font-monospace {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-subtitle {
        font-size: 1.3rem;
    }

    .landing-logo {
        max-width: 300px;
    }

    .nav-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-card {
        padding: 1.5rem;
    }

    .landing-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }

    .landing-logo {
        max-width: 250px;
    }
}