/* Authentication, Dashboard and Order Tracking Styles */

/* Auth Layout */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 250px);
    padding: 60px 0;
    background-color: var(--light-gray);
}

.auth-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.auth-footer-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.auth-footer-links a {
    color: var(--primary);
    font-weight: 600;
}

/* User Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 50px 0;
    align-items: flex-start;
}

.dashboard-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 0;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    background-color: var(--light-gray);
    color: var(--primary);
    border-left-color: var(--primary);
}

.dashboard-content-panel {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}

.dashboard-panel-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

/* Quick Cards Stats */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--light-gray);
    padding: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    font-weight: 600;
}

/* Orders Table */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    text-align: left;
    padding: 12px 16px;
    background-color: var(--light-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.order-status {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-delivered {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.status-processing {
    background-color: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.status-shipped {
    background-color: rgba(255, 152, 0, 0.15);
    color: #FF9800;
}

/* Order Tracking Page */
.track-page-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: var(--shadow-sm);
}

.track-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.track-info-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.track-info-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.track-info-value {
    color: var(--medium-gray);
    margin-top: 4px;
}

/* Timeline Layout */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 4px solid var(--white);
    transition: var(--transition);
    z-index: 2;
}

.timeline-step.completed .timeline-dot {
    background-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-step.completed::before {
    /* highlights line between completed items */
}

.timeline-step-info {
    display: flex;
    flex-direction: column;
}

.timeline-step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-step.completed .timeline-step-title {
    color: var(--primary);
}

.timeline-step-desc {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 4px;
}

.timeline-step-time {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--medium-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 48px; /* Room for eye button */
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    transition: var(--transition);
    border-radius: 50%;
}

.password-toggle-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 87, 34, 0.05);
}

/* Responsive Auth & Dashboard */
@media (max-width: 991px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
