:root {
    --primary-color: #0D47A1;
    --primary-light: #1976D2;
    --primary-lighter: #42A5F5;
    --primary-lightest: #90CAF9;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%) !important;
}

.navbar {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%) !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-toggle {
    color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover {
    color: #90CAF9 !important;
}

.navbar .dropdown-menu {
    background-color: #0D47A1 !important;
    border: none !important;
}

.navbar .dropdown-item {
    color: #ffffff !important;
}

.navbar .dropdown-item:hover {
    background-color: #1976D2 !important;
    color: #ffffff !important;
}

.navbar .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, 0.9)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 12px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
}

.btn-outline-primary {
    border-color: var(--primary-light);
    color: var(--primary-light);
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card.rounded-20 {
    border-radius: 20px;
}

.card.rounded-16 {
    border-radius: 16px;
}

.card.rounded-12 {
    border-radius: 12px;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.badge.bg-orange {
    background-color: #f97316;
}

.badge.bg-success {
    background-color: #10b981;
}

.badge.bg-warning {
    background-color: #f59e0b;
}

.badge.bg-danger {
    background-color: #ef4444;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f3f4f6;
}

.list-group-item:last-child {
    border-bottom: none;
}

.mt-6 {
    margin-top: 2.5rem;
}

.mb-6 {
    margin-bottom: 2.5rem;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.transition-shadow {
    transition: box-shadow 0.2s ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
}

@media (max-width: 768px) {
    .card-body.p-6 {
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .fs-5 {
        font-size: 1rem;
    }
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gap-4 {
    gap: 1rem;
}

.recipe-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.recipe-card {
    flex: 0 0 calc(33.333% - 0.666rem);
    max-width: calc(33.333% - 0.666rem);
}

@media (max-width: 991px) {
    .recipe-card {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 575px) {
    .recipe-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

.text-primary {
    color: var(--primary-light);
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-danger {
    color: #ef4444;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center;
}

.min-vh-100 {
    min-height: 100vh;
}

.d-grid {
    display: grid;
}

.gap-3 {
    gap: 0.75rem;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 12px 24px;
}

.btn-close {
    padding: 0.5rem;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert {
    border-radius: 12px;
    border: none;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.overflow-hidden {
    overflow: hidden;
}

.modal-content {
    border-radius: 20px;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.whitespace-nowrap {
    white-space: nowrap;
}
