/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}

/* Top bar with breadcrumb and date */
.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.breadcrumb {
    color: var(--secondary);
}

.date-display {
    color: var(--secondary);
}

.date-display span {
    color: var(--primary);
}

.welcome-message {
    font-size: clamp(1.25rem, 4vw, 2rem);
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-align: right;
}

/* Action Cards Grid - 3 columns on tablet/desktop */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Tabs */
.orders-tabs {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-button.active {
    color: var(--secondary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

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

/* Orders List */
.orders-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Order Item - Orange Header Bar */
.order-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.order-header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.order-number {
    font-weight: bold;
    font-size: 1rem;
}

.order-status {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}

.expand-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s;
}

.expand-button.expanded {
    transform: rotate(180deg);
}

/* Order Details - 4 Box Grid */
.order-details {
    display: none;
    padding: 1.5rem;
    background: var(--light-gray);
}

.order-details.expanded {
    display: block;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-box {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
}

.detail-box h4 {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.detail-box p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #333;
}

.detail-box .label {
    color: var(--primary);
    font-weight: 600;
}

/* Status Box - Special Styling */
.status-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 1rem;
}

.btn-mark-shipped {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.btn-mark-shipped:hover {
    opacity: 0.9;
}

/* Photo Thumbnails */
.photo-thumbnails {
    margin-top: 1rem;
}

.photo-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.photo-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--primary);
}

/* Buttons */
.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 3rem;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 1rem 2rem;
    }

    .welcome-message {
        font-size: 1.5rem;
    }

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

    .dashboard-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }

    .tab-button {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .tab-button.active {
        border-bottom-color: #e0e0e0;
        border-left-color: var(--primary);
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .photo-thumbnail {
        width: 60px;
        height: 60px;
    }
}

.dashboard-card a.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
}

.coming-soon {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Legal Pages (Terms, Privacy) */
.dashboard-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
}

.page-footer-note {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-style: italic;
    text-align: center;
}

.tos-section {
    margin-bottom: 2rem;
}

.tos-section h2 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary);
}

.tos-section h3 {
    color: var(--primary);
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

.tos-section p {
    margin-bottom: 0.75rem;
    color: #333;
}

.tos-section ul {
    margin: 0.5rem 0 0.75rem 1.5rem;
    color: #333;
}

.tos-section ul li {
    margin-bottom: 0.4rem;
}
