/* ============================================
   CATERING KU - CUSTOM STYLES
   Clean & Consistent Design System
   ============================================ */

/* ============================================
   CSS VARIABLES - SINGLE SOURCE OF TRUTH
   ============================================ */
:root {
    /* Primary Orange Theme */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Status Colors */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    --green-100: #dcfce7;
    --green-500: #10b981;
    --green-600: #16a34a;
    --green-800: #166534;

    --yellow-100: #fef3c7;
    --yellow-400: #facc15;
    --yellow-600: #d97706;
    --yellow-800: #92400e;

    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;

    --purple-100: #f3e8ff;
    --purple-800: #6b21a8;

    /* Semantic Colors */
    --background: #ffffff;
    --foreground: #030213;
    --border: rgba(0, 0, 0, 0.1);
    --input-background: #f3f3f5;

    /* Border Radius */
    --radius: 0.625rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Font */
    --font-size: 16px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ============================================
   GLOBAL RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
.h1 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--gray-900);
}

h2,
.h2 {
    font-size: 1.875rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--gray-900);
}

h3,
.h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--gray-900);
}

h4,
.h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--gray-900);
}

h5,
.h5 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--gray-900);
}

p {
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--gray-600);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--orange-600);
    color: white;
}

.btn-primary:hover {
    background-color: var(--orange-700);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--orange-600);
    border: 2px solid var(--orange-600);
}

.btn-outline-primary:hover {
    background-color: var(--orange-600);
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    color: white;
}

.btn-success {
    background-color: var(--green-500);
    color: white;
}

.btn-success:hover {
    background-color: var(--green-600);
}

.btn-danger {
    background-color: var(--red-600);
    color: white;
}

.btn-danger:hover {
    background-color: var(--red-700);
}

.btn-white {
    background-color: white;
    color: var(--orange-600);
}

.btn-white:hover {
    background-color: var(--gray-100);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange-600);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand-custom:hover {
    color: var(--orange-700);
}

.nav-link-custom {
    position: relative;
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--orange-600);
}

.nav-link-custom.active {
    color: var(--orange-600);
    font-weight: var(--font-weight-semibold);
}

.nav-link-custom.active::after {
    content: "";
    position: absolute;
    bottom: -0.25rem;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--orange-600);
    border-radius: 2px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top,
.package-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.package-image {
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.package-image:hover {
    transform: scale(1.02);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: none;
    font-weight: var(--font-weight-semibold);
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select,
textarea.form-control {
    background-color: var(--input-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    transition: all 0.2s ease;
    color: var(--gray-900);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    background-color: white;
    border-color: var(--orange-600);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: block;
}

.form-check-input {
    border-color: var(--gray-300);
}

.form-check-input:checked {
    background-color: var(--orange-600);
    border-color: var(--orange-600);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    display: inline-block;
}

.badge-orange,
.badge.bg-orange-light {
    background-color: var(--orange-100);
    color: var(--orange-600);
}

.badge-success {
    background-color: var(--green-100);
    color: var(--green-600);
}

.badge-warning {
    background-color: var(--yellow-100);
    color: var(--yellow-600);
}

.badge-danger {
    background-color: var(--red-100);
    color: var(--red-600);
}

.badge-info {
    background-color: var(--blue-100);
    color: var(--blue-600);
}

.badge-purple {
    background-color: var(--purple-100);
    color: var(--purple-800);
}

/* ============================================
   GRADIENT CARDS (Dashboard Stats)
   ============================================ */
.gradient-card-orange {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    border: none;
}

.gradient-card-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.gradient-card-yellow {
    background: linear-gradient(135deg, #eab308, #d97706);
    color: white;
    border: none;
}

.gradient-card-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    color: white;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    width: 100%;
    margin-bottom: 0;
}

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

.table th {
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 0.75rem 1rem;
    color: var(--gray-900);
    border-bottom: 1px solid var(--border);
}

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

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STATUS TIMELINE
   ============================================ */
.status-timeline {
    position: relative;
    padding-left: 10px;
}

.status-item {
    position: relative;
    padding-left: 35px;
    padding-bottom: 20px;
}

.status-item:last-child {
    padding-bottom: 0;
}

.status-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 20px;
    bottom: -5px;
    width: 2px;
    background-color: var(--gray-200);
}

.status-item:last-child::before {
    display: none;
}

.status-dot {
    position: absolute;
    left: 0;
    top: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--gray-200);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
    transition: all 0.3s ease;
}

.status-item.active .status-dot {
    background-color: var(--orange-600);
    box-shadow: 0 0 0 2px var(--orange-600);
    animation: pulse-orange 2s infinite;
}

.status-item.completed .status-dot {
    background-color: var(--green-500);
    box-shadow: 0 0 0 2px var(--green-500);
}

.status-item.completed::before {
    background-color: var(--green-500);
}

@keyframes pulse-orange {
    0%,
    100% {
        box-shadow: 0 0 0 2px var(--orange-600);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.3);
    }
}

/* ============================================
   STAR RATING
   ============================================ */
.star-rating {
    direction: rtl;
    display: inline-flex;
    gap: 8px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label.star {
    font-size: 2.5rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.star-rating input[type="radio"]:checked ~ label.star,
.star-rating label.star:hover,
.star-rating label.star:hover ~ label.star {
    color: #fbbf24;
    transform: scale(1.1);
}

.star-rating label.star:active {
    transform: scale(0.95);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background-color: white;
}

.breadcrumb-item a {
    color: var(--orange-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--orange-700);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-500);
}

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

.alert-success {
    background-color: var(--green-100);
    color: #065f46;
}

/* ============================================
   UTILITIES - COLOR
   ============================================ */
.text-orange-600,
.text-orange-primary {
    color: var(--orange-600) !important;
}

.text-gray-400 {
    color: var(--gray-400) !important;
}

.text-gray-500 {
    color: var(--gray-500) !important;
}

.text-gray-600 {
    color: var(--gray-600) !important;
}

.text-gray-700 {
    color: var(--gray-700) !important;
}

.text-gray-900 {
    color: var(--gray-900) !important;
}

.bg-orange-600,
.bg-orange-primary {
    background-color: var(--orange-600) !important;
}

.bg-orange-100,
.bg-orange-light {
    background-color: var(--orange-100) !important;
}

.bg-orange-50 {
    background-color: var(--orange-50) !important;
}

.bg-gray-50 {
    background-color: var(--gray-50) !important;
}

.bg-gray-100 {
    background-color: var(--gray-100) !important;
}

.border-orange-primary {
    border-color: var(--orange-600) !important;
}

/* ============================================
   UTILITIES - MISC
   ============================================ */
.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-nav.mx-auto {
        margin: 1rem 0 !important;
    }
}

@media (max-width: 768px) {
    h1,
    .h1 {
        font-size: 1.875rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    h3,
    .h3 {
        font-size: 1.25rem;
    }

    .star-rating label.star {
        font-size: 2rem;
    }

    .status-item {
        padding-left: 30px;
    }

    .package-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================
   FOOTER MODERN DESIGN
   ============================================ */
.footer-modern {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--gray-300);
    padding: 4rem 0 0;
    margin-top: 5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: white;
}

.footer-brand i {
    color: var(--orange-600);
    font-size: 2rem;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    color: white;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--orange-600);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--orange-600);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--orange-600);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--orange-600);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--orange-600);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: 0;
}

/* Additional order detail styles */
.order-detail-header {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-box {
    background: var(--gray-50);
    border-left: 4px solid var(--orange-600);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
}

.info-box-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    display: block;
}

.info-box-value {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: var(--font-weight-medium);
}

.payment-summary {
    background: linear-gradient(135deg, var(--orange-50), var(--orange-100));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.payment-row:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 2px solid var(--orange-200);
}

.payment-total {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--orange-600);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.menu-item:hover {
    background: var(--orange-50);
    transform: translateX(3px);
}

.menu-item i {
    color: var(--green-500);
    flex-shrink: 0;
}

.help-box {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.help-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.help-box h3 {
    color: white;
}

.help-box p {
    color: rgba(255, 255, 255, 0.9);
}

.help-box .btn {
    background: white;
    color: var(--green-600);
    border: none;
}

.help-box .btn:hover {
    background: var(--gray-100);
    color: var(--green-700);
}

.rating-card {
    border: 2px solid var(--green-500) !important;
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 3rem 0 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}
