

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazirmatn, sans-serif;
}

body {
    background: #FFF8F2;
    color: #5C4033;
    direction: rtl;
}

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

.card {
    background: #FFFFFF;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid #E9D8CF;
}

.section-title {
    margin-bottom: 10px;
}


.btn-order-page {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary-order-page {
    background: #D9776A;
    color: white;
}

.btn-success {
    margin-right: 45%;
    background: #16a34a;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-order-page:hover {
    opacity: 0.9;
}

.orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: #FFF3EC;
    border: 1px solid #E9D8CF;
    padding: 12px;
    border-radius: 12px;
    transition: 0.2s;
}

.order-card:hover {
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #E7CFC2;
}

.status.pending {
    background: #f59e0b;
    color: black;
}

.status.done {
    background: #22c55e;
    color: black;
}

.status.cancelled {
    background: #ef4444;
}

.delete-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
}

.hidden {
    display: none;
}

.loading {
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #E7CFC2;
    border-top: 3px solid #D9776A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}




input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 8px;
    margin-bottom: 16px;
    background: #FFF3EC;
    border: 1px solid #E9D8CF;
    border-radius: 12px;
    color: #5C4033;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #D9776A;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.order-card {
    background: linear-gradient(145deg, #FFF3EC, #FFF8F2);
    border: 1px solid #E9D8CF;
    padding: 14px;
    border-radius: 14px;
    transition: 0.2s;
}

.order-card:hover {
    transform: translateY(-3px);
    border-color: #D9776A;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    z-index: 9999;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

label {
    font-size: 13px;
    color: #8E6E60;
}

.cakeName-subtitle {
    font-size: 11.2px;
    color: #A68A7A;
    font-style: italic;   
}

#submitOrderBtn {
    width: 220px;
    margin: 20px auto 0;
    display: block;
    padding: 14px 32px;
    font-size: 1.05rem;
}

#cakeName {
    width: 100% !important;
    box-sizing: border-box;
}















@media (max-width: 768px) {
    #submitOrderBtn {
        width: 100%;
        max-width: 100%;
        margin: 15px auto 0;
    }
    
    .cakeName-subtitle {
        font-size: 10.5px;
        line-height: 1.4;
    }
}

@media (max-width: 600px) {
    .order-header {
        flex-direction: column;
        gap: 5px;
    }

    .container {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 15, 20, 0.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
        border-top: 1px solid #E9D8CF;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 999;
    }

    .nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header {
        padding: 14px 20px;
    }
}
