/*
 * EPOS Admin - Custom Bootstrap Theme
 * 
 * Customize Bootstrap by overriding CSS variables and adding custom styles.
 * This file is loaded AFTER bootstrap.min.css to override defaults.
 * 
 * Bootstrap 5 CSS Variables Reference:
 * https://getbootstrap.com/docs/5.3/customize/css-variables/
 */

:root {
    /* ========================================
     * PRIMARY COLORS
     * Customize the main brand colors
     * ======================================== */
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;
    
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    
    --bs-info: #0dcaf0;
    --bs-info-rgb: 13, 202, 240;
    
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
    
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    
    --bs-light: #f8f9fa;
    --bs-light-rgb: 248, 249, 250;
    
    --bs-dark: #212529;
    --bs-dark-rgb: 33, 37, 41;

    /* ========================================
     * BODY DEFAULTS
     * ======================================== */
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #212529;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;

    /* ========================================
     * LINK COLORS
     * ======================================== */
    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: #0a58ca;

    /* ========================================
     * BORDER RADIUS
     * ======================================== */
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-pill: 50rem;

    /* ========================================
     * CUSTOM EPOS THEME VARIABLES
     * ======================================== */
    --epos-sidebar-bg: #212529;
    --epos-sidebar-color: #adb5bd;
    --epos-sidebar-hover-bg: #343a40;
    --epos-sidebar-hover-color: #fff;
    --epos-sidebar-active-bg: var(--bs-primary);
    --epos-sidebar-active-color: #fff;
    
    --epos-header-bg: #212529;
    --epos-header-color: #fff;
    
    --epos-footer-bg: transparent;
    --epos-footer-color: #6c757d;
}

/* ========================================
 * COMPONENT OVERRIDES
 * ======================================== */

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
}

/* Cards */
.card {
    --bs-card-border-radius: var(--bs-border-radius-lg);
    --bs-card-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    box-shadow: var(--bs-card-box-shadow);
}

/* Form Controls - More visible borders */
.form-control,
.form-select {
    border-color: #2c3e50;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

/* ========================================
 * EPOS ADMIN LAYOUT STYLES
 * ======================================== */

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background: var(--epos-sidebar-bg);
}

.sidebar .nav-link {
    color: var(--epos-sidebar-color);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
    color: var(--epos-sidebar-hover-color);
    background: var(--epos-sidebar-hover-bg);
}

.sidebar .nav-link.active {
    color: var(--epos-sidebar-active-color);
    background: var(--epos-sidebar-active-bg);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Section headers in sidebar */
.sidebar .sidebar-section-header {
    color: #8a9199;
    cursor: default;
    pointer-events: none;
}

/* Header */
.navbar-dark {
    background: var(--epos-header-bg) !important;
}

/* Content wrapper */
.content-wrapper {
    min-height: 100vh;
}

/* Footer */
footer {
    background: var(--epos-footer-bg);
    color: var(--epos-footer-color);
}

/* ========================================
 * LOGIN PAGE THEME
 * ======================================== */
.login-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* To customize login gradient, change the colors above or use:
 * --epos-login-gradient-start: #667eea;
 * --epos-login-gradient-end: #764ba2;
 */
