@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #232323;
}

.container {
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 20px;
}
/* @media (max-width:767px){
    .container{
        margin: 30px auto;
    }
} */
/* Vertical Tab Navigation */
.tab-navigation {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}
@media(max-width: 991px){
    .tab-navigation{
        margin-bottom: 30px;
    }
}

.tab-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    text-align: left;
}

.tab-button i {
    width: 24px;
    margin-right: 10px;
}

.tab-button:hover {
    color: #7A5C43;
    background: rgba(122, 92, 67, 0.05);
}

.tab-button.active {
    color: #7A5C43;
    background: rgba(122, 92, 67, 0.1);
}

/* Tab Content Area */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared Styles */
.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: #232323;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#dashboard .card{
    text-align: center;
}
#dashboard .card h3{
    font-size: 23px;
}
#dashboard .card i{
    color: #7A5C43;
    text-align: center;
    margin-bottom: 15px;
    font-size: 25px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #7A5C43;
    color: #fff;
}

.btn-primary:hover {
    background: #614936;
}

.btn-secondary {
    background: #f5f5f5;
    color: #232323;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #eee;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #7A5C43;
    box-shadow: 0 0 0 2px rgba(122, 92, 67, 0.1);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #7A5C43;
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .tab-navigation {
        position: sticky;
        top: 20px;
        z-index: 100;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Order Details Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 30px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 24px;
    color: #232323;
}

.close-modal {
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #232323;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.order-detail-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.detail-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.detail-value {
    color: #232323;
    font-weight: 500;
}

.order-timeline {
    margin: 30px 0;
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7A5C43;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 12px;
    width: 1px;
    height: calc(100% - 12px);
    background: #ddd;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.timeline-event {
    font-weight: 500;
    color: #232323;
}

@media (max-width: 768px) {
    .order-details-grid {
        grid-template-columns: 1fr;
    }
}