/* Spike Theme inspired by Spike Bootstrap Admin Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bs-blue: #0d6efd;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #10b981;
    --bs-info: #0ea5e9;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f3f6f9;
    --bs-dark: #1e293b;
    --bs-body-font-family: "Plus Jakarta Sans", sans-serif;
    --bs-body-font-size: 0.875rem;
    --bs-body-bg: #f5f9fe;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    background-color: var(--bs-body-bg);
}

.navbar-dark {
    background-color: var(--bs-dark) !important;
}

/* Card redesign */
.card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button styling */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Navigation */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

/* Table styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    color: var(--bs-dark);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

/* Form controls */
.form-control {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 0.35em 0.65em;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #64748b;
}

/* Dropdown menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Toast / alerts */
.toast {
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Sidebar navigation */
.sidebar-nav .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.sidebar-nav .nav-link.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
}

/* Stats cards */
.stats-card {
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Hero section - modern gray style */
.hero-section {
    background: linear-gradient(135deg, #2a2d3e 0%, #454c5f 100%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-section h1, .hero-section h2, .hero-section h3 {
    color: #fff;
    font-weight: 600;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.8);
}

.hero-section .btn-primary {
    background-color: #fff;
    color: #2a2d3e;
    border-color: #fff;
    font-weight: 600;
}

.hero-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Custom utilities */
.rounded-4 {
    border-radius: 0.5rem !important;
}

.rounded-5 {
    border-radius: 1rem !important;
}

.border-dashed {
    border-style: dashed !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.fs-8 {
    font-size: 0.65rem !important;
}

/* Theme Selector - ensure consistent styling */
.theme-selector {
    background-color: var(--bs-light);
    color: var(--bs-dark);
    border-color: #dee2e6;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.theme-selector:hover, .theme-selector:focus, .theme-selector:active {
    background-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.theme-selector-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.theme-selector-menu .dropdown-item {
    color: var(--bs-dark);
    font-weight: 500;
    padding: 0.65rem 1rem;
}

.theme-selector-menu .dropdown-item:hover {
    background-color: var(--bs-light);
}

.theme-selector-menu .dropdown-item.active {
    background-color: var(--bs-primary);
    color: #fff;
}
