/* Combined CSS: app.blade.php (base) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-profile {
    display: inline-block;
    padding: 10px 20px;
    background: #EC2029;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn:hover {
    background: #550004;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Combined CSS: auth */
body.auth {
    background: #0f0f0f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
}

.auth-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border: 2px solid #ff8c00;
}

.logo-section img {
    max-width: 150px;
    margin-bottom: 10px;
}

.logo-section h1 {
    color: #ff8c00;
    font-size: 24px;
    margin-bottom: 10px;
}

.logo-section p {
    color: #a5a5a5;
    font-size: 14px;
}

h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-btn {
    border-radius: 100px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #a5a5a5;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #404040;
    border-radius: 100px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #2d2d2d;
    color: #fff;
}

input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #a5a5a5;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #ff8c00;
}

.btn-secondary {
    background: #404040;
    color: #fff;
    margin-top: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #505050;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Combined CSS: dashboard */
body.dashboard {
    background: #0f0f0f;
    color: #fff;
}

header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #ff8c00;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    max-height: 50px;
}

.logo h1 {
    font-size: 24px;
    color: #ff8c00;
}

.logo h3 {
    font-size: 20px;
    color: #ff8c00;
}

.user-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-menu a,
.user-menu button {
    color: #a5a5a5;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s;
}

.user-menu a:hover,
.user-menu button:hover {
    color: #ff8c00;
}

.container.dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.welcome-section {
    background: linear-gradient(135deg, #b3000c 0%, #eb710e 60%, #7a080e 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(236, 29, 42, 0.3);
}

.welcome-section h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 16px;
    opacity: 0.95;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #404040;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #a5a5a5;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: #ff8c00;
    border-bottom-color: #ff8c00;
}

.tab-content {
    display: none;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
}

.tab-content.active {
    display: block;
}

.orders-list {
    display: grid;
    gap: 20px;
}

.order-card {
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    background: #2d2d2d;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #404040;
}

.order-number {
    font-weight: 600;
    color: #ff8c00;
    font-size: 16px;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #3a3a1f;
    color: #ffeb99;
}

.status-confirmed,
.status-preparing {
    background: #1f3a3a;
    color: #99ebf1;
}

.status-delivered {
    background: #1f3a1f;
    color: #99f1b3;
}

.status-cancelled {
    background: #3a1f1f;
    color: #ff9999;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #a5a5a5;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #404040;
}

.order-total {
    font-size: 18px;
    font-weight: 600;
    color: #ff8c00;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-orders i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.profile-form {
    display: grid;
    gap: 20px;
    max-width: 500px;
}

.form-group input::placeholder {
    color: #666;
}

.btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #EC1D2A 0%, #a00008 100%);
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(236, 29, 42, 0.4);
}

.btn-logout {
    background: #404040;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
}

.btn-logout:hover {
    background: #505050;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #3a1f1f;
    color: #ff9999;
    border: 1px solid #5a3f3f;
}

.alert-success {
    background-color: #1f3a1f;
    color: #99f1b3;
    border: 1px solid #3a5a3a;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #404040;
}

.divider span {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0 10px;
    position: relative;
    color: #666;
    font-size: 13px;
}

/* Combined CSS: menu */
body.menu {
    background-color: #0f0f0f;
    color: #fff;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
    border-bottom: 3px solid #ff8c00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.text-success {
    color: #25D366;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    max-height: 50px;
}

.logo h1 {
    font-size: 24px;
    color: #ff8c00;
}

.logo h3 {
    font-size: 16px;
    color: #b9b9b9;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
}

.brand-name small {
    display: block;
    font-size: 12px;
    color: #ff8c00;
    margin-top: -5px;
}

.user-link {
    background-color: #2d2d2d;
    color: #fff;
    padding: 10px 20px;
    border: #4d4d4d 2px solid;
    border-radius: 100px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.user-link:hover {
    background-color: #EC2029;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #c5c5c5;
    font-size: 18px;
    cursor: pointer;
    padding: 0px 0px;
}

.user-link.show {
    display: flex !important;
    position: absolute;
    top: 64px;
    right: 20px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.register-link {
    background: #2d2d2d;
    color: #fff;
    padding: 10px 20px;
    border: #4d4d4d 2px solid;
    border-radius: 100px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.register-link:hover {
    background-color: #EC2029;
}

.container.menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.search-section {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-section h1 {
    margin: 0;
    font-size: 28px;
}

.search-bar {
    width: 360px;
    max-width: 50%;
    padding: 15px;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 0;
}

.search-bar::placeholder {
    color: #999;
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 20px;
    background-color: #2d2d2d;
    color: #a5a5a5;
    border-radius: 100px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
    flex: 0 0 auto;
}

.category-btn:hover {
    color: #fff;
}

.category-btn.active {
    background-color: #EC2029;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid #404040;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
    border-color: #ff8c00;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #ff8c00;
}

.product-content {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.product-description {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 12px;
    min-height: 30px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #D4AF37;
}

.btn-details {
    background-color: #EC2029;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-details:hover {
    background-color: #EC2029;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ccc;
}

.empty-state p {
    color: #999;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .header {
        flex-direction: row;
        gap: 0;
        padding: 12px 16px;
    }

    .brand-name {
        display: none;
    }

    .hamburger {
        display: inline-block;
    }

    .user-link {
        display: none;
    }

    .categories {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }
}

/* Spacing utilities */
.mt-0 {
    margin-top: 0.2rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0.2rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

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

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.footer-yuna {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 3px solid #e63946;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.footer-content p::first-letter {
    color: #e63946;
    font-weight: bold;
}

a {
    text-decoration: none;
}

/* Product show */
.product-show {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.product-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.product-image-large {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 320px;
    background: #f2f2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-description {
    font-size: 12px;
    line-height: 1.6;
    color: #ccc;
}

.product-ingredients h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-ingredients p {
    color: #555;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #D4AF37;
}

.btn-add-cart {
    background: #1e7f43;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart:hover {
    opacity: 0.9;
    color: #fff;
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}