/* Sell My Books UK - Minimal Portfolio Design System */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Pacifico&display=swap');

/* Design Tokens */
:root {
    /* Colors - Base */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: #F5F5F5;
    --color-gray-mid: #BDBDBD;
    --color-gray-dark: #333333;
    
    /* Colors - Accent */
    --color-yellow: #FFD54F;
    --color-blue: #90CAF9;
    --color-coral: #FF8A65;
    --color-orange: #FF8C42;
    
    /* Typography */
    --font-primary: 'Inter', 'Helvetica', 'Arial', sans-serif;
    --font-secondary: 'Pacifico', cursive;
    
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 28px;
    --font-size-xxl: 36px;
    
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.4;
    --line-height-loose: 1.6;
    
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.05em;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    
    /* Radius */
    --radius-none: 0px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadow */
    --shadow-none: none;
    --shadow-soft: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-glow-white: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
    --shadow-glow-orange: 0 0 20px rgba(255, 140, 66, 0.8), 0 0 40px rgba(255, 140, 66, 0.5);
    
    /* Transitions */
    --transition-default: all 0.2s ease-in-out;
    
    /* Breakpoints */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1200px;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--color-black);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Logo Styles - Glowing Effect */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-orange);
    clip-path: polygon(
        10% 0%, 90% 0%, 
        90% 15%, 100% 15%, 100% 20%, 
        95% 20%, 95% 100%, 
        5% 100%, 5% 20%, 
        0% 20%, 0% 15%, 10% 15%
    );
    filter: drop-shadow(var(--shadow-glow-orange));
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 15%;
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-shadow: var(--shadow-glow-white);
    letter-spacing: 1px;
}

/* Header Component */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: var(--spacing-lg) 0;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-white) !important;
    transition: var(--transition-default);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar .nav-link {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    letter-spacing: var(--letter-spacing-normal);
    color: rgba(255, 255, 255, 0.95) !important;
    transition: var(--transition-default);
    padding: 8px 12px !important;
    margin: 0 4px;
    border-radius: 6px;
    font-weight: 500;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white) !important;
}

.navbar .nav-link i {
    margin-right: 4px;
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-top: 8px;
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 10px 16px;
    transition: var(--transition-default);
    font-size: var(--font-size-md);
}

.navbar .dropdown-item:hover {
    background-color: #f0f0f0;
    transform: translateX(4px);
}

.navbar .dropdown-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.navbar .dropdown-divider {
    margin: 8px 0;
}

/* Badge on Basket Icon */
.navbar .position-relative .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* Get Started Button in Nav */
.navbar .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 700;
    border-radius: 20px;
    transition: var(--transition-default);
}

.navbar .btn-warning:hover {
    background-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Admin Dropdown Styling */
.admin-dropdown-toggle {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: var(--color-yellow) !important;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.admin-dropdown-toggle:hover {
    background-color: rgba(255, 193, 7, 0.3) !important;
    color: #fff !important;
    border-color: var(--color-yellow);
}

.admin-dropdown-menu {
    min-width: 250px;
    border: 2px solid var(--color-yellow);
}

.admin-dropdown-menu .dropdown-header {
    color: #856404;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 16px;
    background: #fff3cd;
    margin: -8px -8px 8px;
    border-radius: 6px 6px 0 0;
}

.admin-dropdown-menu .dropdown-item {
    font-weight: 500;
}

.admin-dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-dropdown-menu .dropdown-item i {
    color: #667eea;
}

.admin-dropdown-menu .dropdown-item:hover i {
    color: white;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 16px;
        margin-top: 16px;
    }
    
    .navbar .nav-link {
        padding: 12px 16px !important;
        margin: 4px 0;
    }
    
    .navbar .btn-warning {
        margin: 8px 0;
        width: 100%;
    }
    
    .navbar .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.95);
    }
    
    .navbar .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    /* Admin dropdown on mobile */
    .admin-dropdown-menu {
        background-color: rgba(255, 193, 7, 0.15) !important;
        border: 2px solid rgba(255, 193, 7, 0.5) !important;
    }
    
    .admin-dropdown-menu .dropdown-header {
        background: rgba(255, 193, 7, 0.3);
        color: #fff;
    }
    
    .admin-dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .admin-dropdown-menu .dropdown-item i {
        color: var(--color-yellow);
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--color-white);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-light);
    color: var(--color-black);
    margin-bottom: var(--spacing-lg);
    letter-spacing: var(--letter-spacing-wide);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-regular);
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: var(--font-size-md);
    color: var(--color-gray-mid);
    margin-bottom: var(--spacing-lg);
}

/* Content Grid - Two Column Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: var(--breakpoint-desktop);
    margin: 0 auto var(--spacing-xl);
    padding: 0 var(--spacing-lg);
}

.grid-card {
    background-color: var(--color-gray-light);
    border-radius: var(--radius-none);
    box-shadow: var(--shadow-none);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-default);
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.grid-card-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.grid-card-icon.yellow { color: var(--color-yellow); }
.grid-card-icon.blue { color: var(--color-blue); }
.grid-card-icon.coral { color: var(--color-coral); }

.grid-card-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
}

.grid-card-description {
    font-size: var(--font-size-md);
    color: var(--color-gray-dark);
    line-height: var(--line-height-loose);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    border-radius: var(--radius-sm);
    transition: var(--transition-default);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary-custom {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    border-radius: var(--radius-sm);
    transition: var(--transition-default);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-group-center {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* How It Works Section */
.how-it-works {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xl);
    background-color: var(--color-gray-light);
    border-radius: var(--radius-sm);
}

.how-it-works h2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    color: var(--color-black);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.how-it-works ol {
    list-style-position: inside;
    padding-left: 0;
}

.how-it-works li {
    font-size: var(--font-size-md);
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-loose);
}

.how-it-works strong {
    color: var(--color-black);
    font-weight: var(--font-weight-medium);
}

/* Bootstrap Override for Cards (for other pages) */
.card {
    border: none;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-default);
    border-radius: var(--radius-sm);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bootstrap Override for Alerts */
.alert {
    border: none;
    border-radius: var(--radius-sm);
}

/* Table Styling */
.table {
    font-size: var(--font-size-md);
}

.table-hover tbody tr:hover {
    background-color: var(--color-gray-light);
}

/* Badge Styling */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.4em 0.8em;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 140, 66, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 140, 66, 0.8));
    }
}

.logo-icon {
    animation: glowPulse 2s ease-in-out infinite;
}

#basketCard {
    animation: slideDown 0.4s ease-out;
}

/* Toast Notifications */
.toast {
    min-width: 300px;
    box-shadow: var(--shadow-soft);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Book Image Styling */
img[alt*="Book"] {
    object-fit: cover;
    border: 1px solid var(--color-gray-mid);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .navbar {
        padding: var(--spacing-md) 0;
    }
    
    .how-it-works {
        padding: var(--spacing-lg);
    }
    
    .grid-card {
        padding: var(--spacing-lg);
    }
    
    .logo-text {
        font-size: var(--font-size-lg);
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-lg);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-md);
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .navbar .nav-link {
        margin: 0 var(--spacing-sm);
    }
}

/* ========================================
   CHARITY-FOCUSED HOMEPAGE STYLES
   ======================================== */

/* Hero Charity Section */
.hero-charity-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 100px;
    margin: -16px -12px 0;
}

/* Home Scanner Card */
.home-scanner-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    margin: 40px auto 0;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.home-scanner-card h3 {
    color: var(--color-black);
    font-size: 1.8rem;
    font-weight: 600;
}

.isbn-input-home {
    border: 3px solid var(--color-gray-light);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 16px;
    transition: all 0.3s ease;
}

.isbn-input-home:focus {
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.3);
    transform: scale(1.02);
}

.offer-price-display {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.basket-summary-home {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--color-black);
    margin-bottom: 8px;
}

.basket-summary-home i {
    font-size: 1.5rem;
    color: #667eea;
}

.hero-charity-headline {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-charity-subtext {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-cta-group {
    margin-bottom: 24px;
}

.trust-badges .badge {
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-image-placeholder {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

/* Section Common Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-black);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-dark);
    margin-bottom: 32px;
}

/* How It Works Section */
.section-how-it-works {
    background-color: var(--color-white);
}

.step-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-blue);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--color-yellow);
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-black);
}

.step-description {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* Why Choose Us Section */
.section-why-choose-us {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-black);
}

.feature-card p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.section-testimonials {
    background-color: var(--color-white);
}

.testimonial-card {
    background: var(--color-gray-light);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    margin-top: 16px;
}

.stars i {
    font-size: 1.1rem;
}

/* SEO Content Section */
.section-seo-content {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-black);
}

.section-seo-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-gray-dark);
}

.section-seo-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 16px;
}

/* Condition Guide Section */
.section-condition-guide {
    background-color: var(--color-white);
}

.condition-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.condition-accept {
    border-left: 4px solid #28a745;
}

.condition-reject {
    border-left: 4px solid #dc3545;
}

.condition-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.condition-card ul {
    list-style: none;
    padding-left: 0;
}

.condition-card li {
    padding: 8px 0;
    font-size: 1.05rem;
    color: var(--color-gray-dark);
    position: relative;
    padding-left: 28px;
}

.condition-accept li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.condition-reject li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* FAQ Section */
.section-faq {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px 24px;
    background-color: white;
    color: var(--color-black);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 20px 24px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
}

/* Contact Section */
.section-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-contact .section-title,
.section-contact .section-subtitle {
    color: white;
}

.contact-info {
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--color-yellow);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Button Enhancements for Charity Site */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Footer Charity Styles */
.footer-charity {
    margin-top: 80px;
}

.footer-tagline {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-yellow) !important;
    transform: translateX(4px);
}

.social-links a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-yellow) !important;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-charity-headline {
        font-size: 2.2rem;
    }
    
    .hero-charity-subtext {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-cta-group .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px 0 !important;
    }
    
    .home-scanner-card {
        padding: 24px;
        margin: 20px auto 0;
    }
    
    .home-scanner-card h3 {
        font-size: 1.4rem;
    }
    
    .isbn-input-home {
        font-size: 1rem;
        padding: 12px;
    }
    
    .offer-price-display {
        font-size: 1.5rem;
    }
    
    .basket-summary-home {
        font-size: 1rem;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .hero-charity-section {
        padding: 40px 0 60px;
    }
    
    .hero-charity-headline {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .home-scanner-card {
        padding: 20px;
        margin: 16px 16px 0;
    }
    
    .home-scanner-card h3 {
        font-size: 1.2rem;
    }
    
    .home-scanner-card .btn {
        width: 100%;
        margin: 8px 0 !important;
    }
    
    .basket-summary-home {
        font-size: 0.95rem;
    }
}

/* ========================================
   SELL PAGE STYLES
   ======================================== */

/* Page Header */
.sell-page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-dark);
}

/* Sell Input Card */
.sell-input-card {
    border: 2px solid var(--color-gray-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sell-input-card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.multiplier-badge .badge,
.basket-preview-badge .badge {
    font-size: 1rem;
}

.isbn-input {
    border: 2px solid var(--color-gray-light);
    transition: all 0.3s ease;
}

.isbn-input:focus {
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Basket Card */
.basket-card {
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.4s ease-out;
}

.basket-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
}

.basket-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.basket-table {
    margin-bottom: 0;
}

.basket-table thead {
    background-color: var(--color-gray-light);
}

.basket-table thead th {
    border-bottom: 2px solid var(--color-gray-mid);
    font-weight: 600;
    padding: 16px;
    color: var(--color-black);
}

.basket-item-row {
    transition: all 0.2s ease;
}

.basket-item-row:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.basket-item-row td {
    padding: 16px;
    vertical-align: middle;
}

.book-title-cell {
    max-width: 400px;
}

.isbn-code {
    background-color: var(--color-gray-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.price-badge {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.basket-total-row {
    background-color: #f8f9fa;
    border-top: 2px solid var(--color-gray-mid);
}

.basket-total-row th {
    padding: 20px 16px;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.basket-footer {
    background-color: var(--color-gray-light);
    padding: 20px 24px;
    border-top: 1px solid var(--color-gray-mid);
}

.basket-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* How It Works Card on Sell Page */
.how-it-works-card {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--color-gray-light);
    margin-top: 32px;
}

.how-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: all 0.3s ease;
}

.how-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.how-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.how-content {
    flex: 1;
}

.how-content strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--color-black);
}

/* Duplicate Confirmation Alert */
.alert-warning .alert-heading {
    color: #856404;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.alert-warning .d-flex.gap-2 {
    gap: 12px;
    flex-wrap: wrap;
}

.alert-warning .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .alert-warning .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .alert-warning .btn {
        width: 100%;
    }
}

/* Toast Notification */
.toast-container {
    z-index: 9999;
}

/* Remove Button Enhancements */
.remove-btn {
    transition: all 0.2s ease;
    border-width: 2px;
}

.remove-btn:hover {
    transform: scale(1.15);
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Empty Basket Card */
.empty-basket-card {
    border: 2px dashed var(--color-gray-mid);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Basket Actions Card */
.basket-actions-card {
    background-color: var(--color-gray-light);
    border: none;
}

/* Responsive Adjustments for Sell/Basket Pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .basket-header h4 {
        font-size: 1.2rem;
    }
    
    .basket-header .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .basket-footer {
        flex-direction: column;
        gap: 16px;
    }
    
    .basket-footer-info {
        order: 1;
    }
    
    .basket-footer .btn {
        width: 100%;
        order: 2;
    }
    
    .basket-table thead th,
    .basket-item-row td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .isbn-code {
        font-size: 0.8rem;
    }
    
    .basket-actions-card .btn {
        width: 100% !important;
        margin-bottom: 8px;
        margin-right: 0 !important;
    }
}

/* ========================================
   STATIC PAGES STYLES (About, FAQ, etc.)
   ======================================== */

/* Feature Box (About Page) */
.feature-box {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-black);
}

.feature-box p {
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Step Card Detailed (How It Works Page) */
.step-card-detailed {
    position: relative;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.step-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.step-number-large {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.step-icon-large {
    font-size: 4rem;
}

.step-card-detailed h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-card-detailed hr {
    margin: 20px 0;
    opacity: 0.3;
}

/* Condition Section (Condition Guide Page) */
.condition-section {
    padding: 20px;
    border-radius: 8px;
    height: 100%;
}

.condition-section.accept {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.condition-section.reject {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
}

.condition-section h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 1.3rem;
}

.condition-section li {
    line-height: 1.8;
}

/* Contact Method (Contact Page) */
.contact-method {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-method a {
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* FAQ Item Styling */
.faq-item {
    margin-bottom: 12px;
}

/* ========================================
   ADMIN ORDERS PAGE STYLES
   ======================================== */

/* Admin Header */
.admin-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-black);
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    border-width: 2px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* User Group Card */
.user-group-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.user-group-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.user-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    padding: 20px;
}

.user-group-header h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.address-display {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    font-size: 0.9rem;
    line-height: 1.6;
}

.address-compact {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Admin Orders Table */
.admin-orders-table {
    font-size: 0.95rem;
}

.admin-orders-table thead {
    background-color: #f8f9fa;
}

.admin-orders-table th {
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #dee2e6;
}

.admin-orders-table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.order-row {
    transition: all 0.2s ease;
}

.order-row:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Order Card (Non-grouped View) */
.order-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.order-number h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.user-info,
.address-compact,
.order-summary {
    padding: 8px;
}

.order-actions .btn {
    white-space: nowrap;
}

/* User Group Footer (Ready Orders Summary) */
.user-group-footer {
    border-top: 2px solid #ffc107;
    padding: 20px;
}

.user-group-footer h6 {
    font-size: 1.1rem;
    color: #856404;
}

.payment-amount {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.payment-amount small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-amount h4 {
    font-size: 1.8rem;
}

/* Collection Scheduling Form in Footer */
.user-group-footer form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-group-footer .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.user-group-footer .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.user-group-footer .btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Modal Enhancements */
.modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.modal-body address {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    line-height: 1.8;
    font-style: normal;
}

/* Responsive Admin Orders */
@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 1.6rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .user-group-header {
        padding: 16px;
    }
    
    .user-group-header h5 {
        font-size: 1.1rem;
    }
    
    .address-display,
    .address-compact {
        margin-top: 12px;
        font-size: 0.85rem;
    }
    
    .order-card .row > div {
        margin-bottom: 12px;
    }
    
    .order-number h4 {
        font-size: 1.3rem;
    }
    
    .user-group-footer {
        padding: 16px;
    }
    
    .user-group-footer h6 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .payment-amount {
        padding: 8px 12px;
    }
    
    .payment-amount h4 {
        font-size: 1.4rem;
    }
}

/* ========================================
   AUTH PAGES STYLES (Login & Register)
   ======================================== */

.auth-card {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.auth-card .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    padding: 12px 16px;
}

.auth-card .form-control {
    border-left: none;
}

.auth-card .form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.auth-card .input-group:focus-within .input-group-text {
    border-color: var(--color-yellow);
    background-color: #fff3cd;
}

.auth-card .input-group:focus-within .form-control {
    border-color: var(--color-yellow);
}

.auth-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .section-contact,
    .hero-cta-group,
    .remove-btn,
    .multiplier-badge,
    .basket-preview-badge,
    .how-it-works-card {
        display: none !important;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .basket-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

