/**
 * Aapbiti Utilities — Custom Styles
 * Bootstrap 5 base + custom enhancements
 */

/* =====================
   FONTS & BASE
   ===================== */
:root {
    --primary: #f0a500;
    --primary-dark: #c88500;
    --dark: #1a1a2e;
    --card-radius: 12px;
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #2d2d2d;
}

/* =====================
   NAVBAR
   ===================== */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

/* =====================
   TOOL CARDS
   ===================== */
.tool-card {
    border-radius: var(--card-radius) !important;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.tool-card .card-body {
    transition: background var(--transition);
}

.tool-card:hover .card-body {
    background: linear-gradient(135deg, #fff9ec 0%, #fff 100%);
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 0;
}

/* =====================
   BUTTONS
   ===================== */
.btn-warning {
    background: var(--primary);
    border-color: var(--primary);
    color: #1a1a1a;
    font-weight: 600;
    transition: background var(--transition);
}

.btn-warning:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #1a1a1a;
}

/* =====================
   FORMS
   ===================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(240, 165, 0, 0.25);
}

/* =====================
   FOOTER
   ===================== */
footer a:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}

/* =====================
   ALERTS
   ===================== */
.alert {
    border-radius: var(--card-radius);
    border: none;
}

/* =====================
   ADMIN PANEL
   ===================== */
.admin-sidebar {
    min-height: 100vh;
    background: var(--dark);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary);
    color: #1a1a1a !important;
    font-weight: 600;
}

/* =====================
   SEARCH RESULTS DROPDOWN
   ===================== */
#searchResults .search-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background var(--transition);
}

#searchResults .search-item:hover {
    background: #fff9ec;
}

/* =====================
   LOADING SPINNER
   ===================== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

/* =====================
   PAGE CONTENT (CMS)
   ===================== */
.page-content h2 { margin-top: 2rem; font-weight: 700; }
.page-content h3 { margin-top: 1.5rem; font-weight: 600; }
.page-content p  { line-height: 1.8; color: #444; }

/* =====================
   MOBILE
   ===================== */
@media (max-width: 768px) {
    .tool-card:hover { transform: none; }
    .hero-section { padding: 40px 0; }
}
