:root {
    --primary: #D0695B;
    --primary-soft: #fdf2f1;
    --secondary: #1e293b;
    --accent: #10b981;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Auth Pages Wrapper */
.ecom-auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    padding: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ecom-auth-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out;
}

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

.ecom-auth-card h2 {
    font-weight: 800;
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 8px;
    text-align: center;
}

.ecom-auth-card p.subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

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

.ecom-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.ecom-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ecom-form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.ecom-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ecom-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 105, 91, 0.3);
}

.ecom-auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.ecom-auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* Dashboard Styles */
.ecom-dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f1f5f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 100;
}

.ecom-dash-sidebar {
    width: 280px;
    background: var(--secondary);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.ecom-dash-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecom-dash-logo span { color: var(--primary); }

.ecom-dash-nav {
    flex: 1;
}

.ecom-dash-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ecom-dash-nav-item i { width: 20px; margin-right: 12px; }

.ecom-dash-nav-item:hover, .ecom-dash-nav-item.active {
    background: rgba(255,255,255,0.05);
    color: white;
}

.ecom-dash-nav-item.active {
    background: var(--primary);
}

.ecom-dash-content {
    flex: 1;
    padding: 40px;
}

.ecom-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.ecom-dash-welcome h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.ecom-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ecom-stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.ecom-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ecom-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 10px;
}

.ecom-recent-orders {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.ecom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ecom-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.ecom-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-main);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-processing { background: #dbeafe; color: #1e40af; }

/* Responsive */
@media (max-width: 992px) {
    .ecom-dashboard-layout { flex-direction: column; }
    .ecom-dash-sidebar { width: 100%; padding: 20px; }
}
