/*
 * HIAU Theme - Harvest Intercontinental American University
 * Custom color scheme based on university logo
 *
 * Primary: Deep Purple/Maroon (#5B2D5B)
 * Accent: Gold (#D4AF37)
 */

:root {
    /* HIAU Primary Colors */
    --hiau-primary: #5B2D5B;
    --hiau-primary-dark: #3D1F3D;
    --hiau-primary-light: #7B3F7B;
    --hiau-primary-rgb: 91, 45, 91;

    /* HIAU Secondary/Accent Colors */
    --hiau-secondary: #8B4D8B;
    --hiau-accent: #D4AF37;
    --hiau-accent-light: #E5C76B;
    --hiau-accent-dark: #B8962E;
    --hiau-accent-rgb: 212, 175, 55;

    /* Override Bootstrap Primary */
    --bs-primary: #5B2D5B;
    --bs-primary-rgb: 91, 45, 91;

    /* Link colors */
    --bs-link-color: #5B2D5B;
    --bs-link-hover-color: #3D1F3D;
}

/* ============================================
   Bootstrap Primary Color Overrides
============================================ */

/* Buttons */
.btn-primary {
    --bs-btn-bg: #5B2D5B;
    --bs-btn-border-color: #5B2D5B;
    --bs-btn-hover-bg: #3D1F3D;
    --bs-btn-hover-border-color: #3D1F3D;
    --bs-btn-active-bg: #3D1F3D;
    --bs-btn-active-border-color: #3D1F3D;
    --bs-btn-focus-shadow-rgb: 91, 45, 91;
}

.btn-outline-primary {
    --bs-btn-color: #5B2D5B;
    --bs-btn-border-color: #5B2D5B;
    --bs-btn-hover-bg: #5B2D5B;
    --bs-btn-hover-border-color: #5B2D5B;
    --bs-btn-active-bg: #5B2D5B;
    --bs-btn-active-border-color: #5B2D5B;
    --bs-btn-focus-shadow-rgb: 91, 45, 91;
}

/* Backgrounds */
.bg-primary {
    background-color: #5B2D5B !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #3D1F3D 0%, #5B2D5B 50%, #7B3F7B 100%) !important;
}

/* Text */
.text-primary {
    color: #5B2D5B !important;
}

/* Links */
a {
    color: #5B2D5B;
}

a:hover {
    color: #3D1F3D;
}

/* Breadcrumbs */
.breadcrumb-item a {
    color: #6c757d;
}

.breadcrumb-item a:hover {
    color: #5B2D5B;
}

.breadcrumb-item.active {
    color: #5B2D5B;
}

/* Badges */
.badge.bg-primary {
    background-color: #5B2D5B !important;
}

/* Border colors */
.border-primary {
    border-color: #5B2D5B !important;
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
    border-color: #7B3F7B;
    box-shadow: 0 0 0 0.25rem rgba(91, 45, 91, 0.25);
}

.form-check-input:checked {
    background-color: #5B2D5B;
    border-color: #5B2D5B;
}

.form-check-input:focus {
    border-color: #7B3F7B;
    box-shadow: 0 0 0 0.25rem rgba(91, 45, 91, 0.25);
}

/* Progress bars */
.progress-bar {
    background-color: #5B2D5B;
}

/* List groups */
.list-group-item.active {
    background-color: #5B2D5B;
    border-color: #5B2D5B;
}

/* Pagination */
.page-link {
    color: #5B2D5B;
}

.page-link:hover {
    color: #3D1F3D;
}

.page-item.active .page-link {
    background-color: #5B2D5B;
    border-color: #5B2D5B;
}

/* Nav tabs/pills */
.nav-link {
    color: #5B2D5B;
}

.nav-link:hover,
.nav-link:focus {
    color: #3D1F3D;
}

.nav-pills .nav-link.active {
    background-color: #5B2D5B;
}

.nav-tabs .nav-link.active {
    color: #5B2D5B;
    border-bottom-color: #5B2D5B;
}

/* Alerts with primary theme */
.alert-primary {
    background-color: #f0e6f0;
    border-color: #d4c4d4;
    color: #3D1F3D;
}

/* ============================================
   HIAU Gold Accent Color Classes
============================================ */

.btn-hiau-gold {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #3D1F3D;
}

.btn-hiau-gold:hover {
    background-color: #B8962E;
    border-color: #B8962E;
    color: #3D1F3D;
}

.btn-outline-hiau-gold {
    border-color: #D4AF37;
    color: #D4AF37;
}

.btn-outline-hiau-gold:hover {
    background-color: #D4AF37;
    color: #3D1F3D;
}

.text-hiau-gold {
    color: #D4AF37 !important;
}

.bg-hiau-gold {
    background-color: #D4AF37 !important;
}

.border-hiau-gold {
    border-color: #D4AF37 !important;
}

/* ============================================
   Dashboard Stat Cards with HIAU Colors
============================================ */

.stat-icon.bg-primary {
    background: linear-gradient(135deg, #5B2D5B 0%, #8B4D8B 100%) !important;
}

/* Gold accent for success stats */
.stat-icon.bg-hiau-accent {
    background: linear-gradient(135deg, #B8962E 0%, #E5C76B 100%) !important;
}

/* ============================================
   Cards and Borders
============================================ */

.card-header.bg-primary {
    background: linear-gradient(135deg, #5B2D5B 0%, #7B3F7B 100%) !important;
}

.card.border-primary {
    border-color: #5B2D5B !important;
}

.card-title.text-primary {
    color: #5B2D5B !important;
}

/* ============================================
   Tables
============================================ */

.table-primary {
    --bs-table-bg: #f0e6f0;
    --bs-table-border-color: #d4c4d4;
    --bs-table-striped-bg: #e8dbe8;
    --bs-table-hover-bg: #e0d0e0;
}

/* ============================================
   Dropdowns
============================================ */

.dropdown-item.active,
.dropdown-item:active {
    background-color: #5B2D5B;
}

/* ============================================
   Avatar Placeholder
============================================ */

.avatar-placeholder.bg-primary {
    background-color: #5B2D5B !important;
}

/* ============================================
   Loading Spinners
============================================ */

.spinner-border.text-primary {
    color: #5B2D5B !important;
}

.spinner-grow.text-primary {
    color: #5B2D5B !important;
}

/* ============================================
   Custom Components
============================================ */

/* Quick action icons */
.text-primary i,
i.text-primary {
    color: #5B2D5B !important;
}

/* Header/Hero sections */
.hero-section,
.page-hero {
    background: linear-gradient(135deg, #3D1F3D 0%, #5B2D5B 50%, #7B3F7B 100%);
}

/* Footer with HIAU branding */
.footer-hiau {
    background: linear-gradient(180deg, #5B2D5B 0%, #3D1F3D 100%);
    color: white;
}

.footer-hiau a {
    color: #E5C76B;
}

.footer-hiau a:hover {
    color: #D4AF37;
}

/* ============================================
   Selection Highlight
============================================ */

::selection {
    background-color: #5B2D5B;
    color: white;
}

::-moz-selection {
    background-color: #5B2D5B;
    color: white;
}

/* ============================================
   Scrollbar Styling (WebKit)
============================================ */

::-webkit-scrollbar-thumb {
    background: #5B2D5B;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B3F7B;
}

/* ============================================
   Focus Ring
============================================ */

*:focus-visible {
    outline-color: #5B2D5B;
}
