body {
    background-color: #f8f9fa;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Joker theme colors */
:root {
    --joker-primary: #ff6b00;
    --joker-secondary: #ff9500;
    --joker-dark: #1a1a2e;
    --joker-light: #fff0e6;
}

/* Portrait mode optimization */
@media (orientation: portrait) {
    .hero-section {
        padding: 2rem 1rem;
    }
    .display-4 {
        font-size: 2rem;
    }
    .card {
        margin-bottom: 1rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Padding for bottom nav on mobile */
@media (max-width: 767px) {
    main {
        padding-bottom: 80px;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--joker-secondary) 0%, var(--joker-primary) 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(255, 107, 0, 0.2);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Glass effect for top navbar */
.sticky-top {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 149, 0, 0.85) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Nav link hover effects */
.navbar .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.navbar .nav-link:active {
    color: #fff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 45px rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--joker-primary);
    box-shadow: 0 8px 15px rgba(255, 107, 0, 0.15);
}

.card-title {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Logo styling */
.navbar-brand img {
    height: 45px;
}

/* Glass effect for bottom nav */
.fixed-bottom {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(248, 249, 250, 0.85) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Bottom nav adjustments */
.fixed-bottom .btn {
    font-size: 1.5rem;
    padding: 0.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.fixed-bottom .btn:hover {
    color: #ffc107;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8),
                 0 0 20px rgba(255, 235, 59, 0.6),
                 0 0 30px rgba(255, 235, 59, 0.4);
}

.fixed-bottom .btn:active {
    color: #ffc107;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 235, 59, 1),
                 0 0 30px rgba(255, 235, 59, 0.8),
                 0 0 45px rgba(255, 235, 59, 0.6);
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
    .fixed-bottom {
        display: none !important;
    }
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--joker-secondary) 0%, var(--joker-primary) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--joker-primary) 0%, var(--joker-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

/* Table styling */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--joker-secondary) 0%, var(--joker-primary) 100%);
    color: white;
}

/* Form elements */
.form-control:focus, .form-range:focus {
    border-color: var(--joker-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Table responsive for portrait */
.table-responsive {
    font-size: 0.9rem;
}

/* Toast notifications animation */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}