/**
 * VFSTD Template Override
 * Custom styles to override Bootstrap with VFSTD theme
 */

/* VFSTD Color Variables */
:root {
    --vfstd-primary: #00AEEF;
    --vfstd-secondary: #0056B3;
    --vfstd-light: #E6F7FF;
    --vfstd-dark: #003366;
    --vfstd-gray: #F5F5F5;
    --vfstd-white: #FFFFFF;
    --vfstd-text: #333333;
    --vfstd-text-light: #666666;
    --vfstd-border: #E0E0E0;
    --vfstd-shadow: 0 2px 10px rgba(0, 174, 239, 0.1);
    --vfstd-shadow-hover: 0 4px 20px rgba(0, 174, 239, 0.2);
}

/* Bootstrap Override Variables */
:root {
    --bs-primary: var(--vfstd-primary);
    --bs-secondary: var(--vfstd-secondary);
    --bs-primary-rgb: 0, 174, 239;
    --bs-secondary-rgb: 0, 86, 179;
}

/* Button Overrides */
.btn-primary {
    --bs-btn-bg: var(--vfstd-primary);
    --bs-btn-border-color: var(--vfstd-primary);
    --bs-btn-hover-bg: var(--vfstd-secondary);
    --bs-btn-hover-border-color: var(--vfstd-secondary);
    --bs-btn-active-bg: var(--vfstd-secondary);
    --bs-btn-active-border-color: var(--vfstd-secondary);
}

.btn-outline-primary {
    --bs-btn-color: var(--vfstd-primary);
    --bs-btn-border-color: var(--vfstd-primary);
    --bs-btn-hover-bg: var(--vfstd-primary);
    --bs-btn-hover-border-color: var(--vfstd-primary);
}

.btn-secondary {
    --bs-btn-bg: var(--vfstd-secondary);
    --bs-btn-border-color: var(--vfstd-secondary);
    --bs-btn-hover-bg: var(--vfstd-primary);
    --bs-btn-hover-border-color: var(--vfstd-primary);
}

/* Form Controls */
.form-control:focus {
    border-color: var(--vfstd-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.25);
}

.form-select:focus {
    border-color: var(--vfstd-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.25);
}

/* Navbar */
.navbar-brand {
    color: var(--vfstd-primary) !important;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: var(--vfstd-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--vfstd-primary);
}

/* Cards */
.card {
    border: 1px solid var(--vfstd-border);
    box-shadow: var(--vfstd-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vfstd-shadow-hover);
}

.card-header {
    background-color: var(--vfstd-light);
    border-bottom: 1px solid var(--vfstd-border);
    color: var(--vfstd-dark);
    font-weight: 600;
}

/* Alerts */
.alert-primary {
    --bs-alert-bg: var(--vfstd-light);
    --bs-alert-border-color: var(--vfstd-primary);
    --bs-alert-color: var(--vfstd-dark);
}

/* Progress Bars */
.progress {
    background-color: var(--vfstd-light);
    border-radius: 6px;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--vfstd-primary), var(--vfstd-secondary));
    border-radius: 6px;
}

/* Badges */
.badge-primary {
    --bs-badge-bg: var(--vfstd-primary);
}

.badge-secondary {
    --bs-badge-bg: var(--vfstd-secondary);
}

/* Pagination */
.page-link {
    color: var(--vfstd-primary);
    border-color: var(--vfstd-border);
}

.page-link:hover {
    color: var(--vfstd-secondary);
    background-color: var(--vfstd-light);
    border-color: var(--vfstd-primary);
}

.page-item.active .page-link {
    background-color: var(--vfstd-primary);
    border-color: var(--vfstd-primary);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: var(--vfstd-light);
    border-radius: 6px;
    padding: 12px 16px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--vfstd-text-light);
}

.breadcrumb-item a {
    color: var(--vfstd-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--vfstd-secondary);
}

.breadcrumb-item.active {
    color: var(--vfstd-text-light);
}

/* Tables */
.table {
    border-color: var(--vfstd-border);
}

.table thead th {
    background-color: var(--vfstd-light);
    border-color: var(--vfstd-border);
    color: var(--vfstd-dark);
    font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: rgba(0, 174, 239, 0.05);
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
    background-color: rgba(0, 174, 239, 0.1);
}

/* Modals */
.modal-header {
    background-color: var(--vfstd-light);
    border-bottom: 1px solid var(--vfstd-border);
}

.modal-title {
    color: var(--vfstd-dark);
    font-weight: 600;
}

.modal-footer {
    background-color: var(--vfstd-light);
    border-top: 1px solid var(--vfstd-border);
}

/* Dropdowns */
.dropdown-menu {
    border: 1px solid var(--vfstd-border);
    box-shadow: var(--vfstd-shadow);
    border-radius: 6px;
}

.dropdown-item {
    color: var(--vfstd-text);
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--vfstd-light);
    color: var(--vfstd-primary);
}

.dropdown-item.active {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--vfstd-border);
}

.nav-tabs .nav-link {
    color: var(--vfstd-text);
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--vfstd-primary);
    border-bottom-color: var(--vfstd-primary);
}

.nav-tabs .nav-link.active {
    color: var(--vfstd-primary);
    background-color: transparent;
    border-bottom-color: var(--vfstd-primary);
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--vfstd-border);
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--vfstd-light);
}

.accordion-button {
    background-color: var(--vfstd-light);
    color: var(--vfstd-dark);
    font-weight: 600;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.25);
}

.accordion-body {
    background-color: var(--vfstd-white);
    color: var(--vfstd-text);
}

/* Tooltips */
.tooltip {
    font-size: 14px;
}

.tooltip-inner {
    background-color: var(--vfstd-dark);
    color: var(--vfstd-white);
    border-radius: 6px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--vfstd-dark);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--vfstd-dark);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--vfstd-dark);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--vfstd-dark);
}

/* Popovers */
.popover {
    border: 1px solid var(--vfstd-border);
    box-shadow: var(--vfstd-shadow);
    border-radius: 8px;
}

.popover-header {
    background-color: var(--vfstd-light);
    border-bottom: 1px solid var(--vfstd-border);
    color: var(--vfstd-dark);
    font-weight: 600;
}

.popover-body {
    color: var(--vfstd-text);
}

/* Carousel */
.carousel-indicators [data-bs-target] {
    background-color: var(--vfstd-primary);
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

.carousel-indicators .active {
    background-color: var(--vfstd-secondary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--vfstd-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-control-prev,
.carousel-control-next {
    color: var(--vfstd-primary);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: var(--vfstd-secondary);
}

/* Spinner */
.spinner-border-primary {
    color: var(--vfstd-primary);
}

.spinner-grow-primary {
    color: var(--vfstd-primary);
}

/* Utilities */
.text-primary {
    color: var(--vfstd-primary) !important;
}

.text-secondary {
    color: var(--vfstd-secondary) !important;
}

.bg-primary {
    background-color: var(--vfstd-primary) !important;
}

.bg-secondary {
    background-color: var(--vfstd-secondary) !important;
}

.bg-light {
    background-color: var(--vfstd-light) !important;
}

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

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

/* Responsive Utilities */
@media (max-width: 576px) {
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Print Styles */
@media print {
    .btn,
    .navbar,
    .modal,
    .dropdown,
    .tooltip,
    .popover {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .table {
        border-collapse: collapse !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #ccc !important;
    }
}


