/* Shaheen Library - Premium Design System */

:root {
    /* Primary Colors - Brand Specific Green (#57A975) */
    --primary-900: #2d5a3c;
    --primary-800: #468c62;
    --primary-700: #57a975;
    /* The Main Brand Color */
    --primary-600: #66bb85;
    --primary-500: #57a975;
    --primary-100: #eef7f2;

    /* Accent Colors - Brand Specific Gold */
    --accent-600: #d48e00;
    --accent-500: #f5aa02;
    --accent-400: #ffc107;
    --accent-100: #fff8e1;

    /* Neutrals - Cream/Paper */
    --bg-paper: #fcfbf7;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-paper);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-900);
    font-weight: 700;
}

/* Navbar */
.navbar-custom {
    background-color: var(--primary-700);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    border-bottom: 4px solid var(--accent-500);
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    color: white !important;
    font-weight: bold;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 1rem;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-400) !important;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-heading);
    color: var(--primary-800);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-800);
    border-color: var(--primary-800);
}

.btn-outline-primary {
    color: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-outline-primary:hover {
    background-color: var(--primary-700);
    color: white;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: var(--primary-100);
}

.table thead {
    background-color: var(--primary-800);
    color: white;
    font-family: var(--font-heading);
}

.table thead th {
    border-bottom: none;
    font-weight: 500;
}

.table thead th a {
    color: white !important;
}

/* Search Box */
.header-search input {
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--border-light);
}

.header-search button {
    border-radius: 0 20px 20px 0;
}

/* Pagination */
.page-link {
    color: var(--primary-700);
}

.page-item.active .page-link {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.badge.bg-secondary {
    background-color: var(--primary-100) !important;
    color: var(--primary-800) !important;
}