/* dashboard.css */
:root {
    --primary: #0b3d91;
    --primary-soft: #eff6ff;
    --success: #22c55e;
    --accent: #f97316;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-main: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 15px rgba(11, 61, 145, 0.05);
}

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

body {
    background: var(--bg-main);
    color: var(--text-dark);
}

.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 40px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #0b3d91 50%, #4ade80 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.logo-icon i {
    position: relative;
    z-index: 2;
    color: #0b3d91;
    font-size: 14px;
}

.sidebar-nav {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.nav-link i {
    width: 20px;
    font-size: 18px;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nav-link.active {
    font-weight: 700;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.logout-link:hover {
    background: #fee2e2;
    color: #dc2626;
}

.sidebar-support {
    background: #fff7ed;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.sidebar-support p {
    font-size: 14px;
    color: #9a3412;
    margin-bottom: 12px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

/* Main Content Styling */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 50px;
}

.main-header {
    background: var(--white);
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.welcome-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.welcome-text p {
    font-size: 14px;
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

.content-wrapper {
    padding: 35px 40px;
}

.section {
    display: none;
    animation: slideUp 0.4s ease-out;
}

.section.active {
    display: block;
}

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

/* Service Marketplace */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.svc-card {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.svc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-soft);
}

.svc-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.svc-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.svc-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.svc-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.order-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.order-btn:hover {
    background: #0047ab;
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.2);
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 30px;
}

/* History Cards */
.history-grid {
    display: grid;
    gap: 16px;
}

.history-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--primary);
}

.h-card-icon {
    width: 60px; height: 60px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}

.h-card-info { flex: 1; }
.h-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.h-card-top h3 { font-size: 18px; font-weight: 700; }
.h-card-date { font-size: 13px; color: var(--text-light); }
.h-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.h-price { font-size: 14px; color: var(--text-light); }
.h-status .status-pill { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* Status Pills */
.status-pill.pending { background: #fef3c7; color: #92400e; }
.status-pill.in-progress { background: #dcfce7; color: #166534; }
.status-pill.completed { background: #dbeafe; color: #1e40af; }

.h-action-btn { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 18px; }

/* Documents */
.docs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.doc-item {
    background: white; padding: 20px; border-radius: 16px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: var(--shadow);
}

.doc-icon { font-size: 24px; color: #ef4444; }
.doc-details h4 { font-size: 14px; margin-bottom: 4px; }
.doc-details p { font-size: 12px; color: var(--text-light); }
.download-btn { margin-left: auto; color: var(--primary); }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; display: none; justify-content: space-around;
    padding: 10px 0; border-top: 1px solid var(--border);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: var(--text-light); font-size: 10px; gap: 4px;
}

.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item i { font-size: 18px; }

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    .sidebar { display: none; }
    .main-content { padding-bottom: 80px; }
    .content-wrapper { padding: 20px; }
}

/* Multi-step Modal Specialized Styles */
.modal-content.multistep {
    max-width: 550px;
    padding: 0;
    overflow: hidden;
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(11, 61, 145, 0.25);
}

.modal-header {
    padding: 30px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step.dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    transition: 0.3s;
}

.step.dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step.dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step.line {
    width: 30px;
    height: 2px;
    background: var(--border);
}

.step.line.active {
    background: var(--primary);
}

.step-content {
    padding: 35px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

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

.wizard-step h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
}

.wizard-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-next, .btn-pay {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-back {
    padding: 14px 25px;
    background: #f1f5f9;
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-next:hover { background: #0047ab; transform: translateY(-2px); }

/* File Upload Wizard */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.drop-zone:hover, .drop-zone.dragover {
    background: #f0f9ff;
    border-color: var(--primary);
    border-style: solid;
}

.drop-zone i { font-size: 30px; color: var(--primary); margin-bottom: 10px; }

.selected-files-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

/* Payment Card */
.final-payment-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.price-line.total {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
}

.crypto-seal {
    font-size: 12px;
    color: var(--success);
    text-align: center;
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.selected-file-item span {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.selected-file-item i {
    color: var(--primary);
    margin-right: 8px;
}

.selected-file-item button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
}

/* Tech Modal Specialized Styles */
.tech-modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 28px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(11, 61, 145, 0.25);
    animation: modalBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalBounce {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tech-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.tech-modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.tech-modal-header p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

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

.tech-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-left: 4px;
}

.tech-input {
    width: 100%;
    padding: 14px 18px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s;
}

.tech-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.05);
}

.tech-whatsapp-btn {
    width: 100%;
    padding: 16px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3);
}

.tech-whatsapp-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(34, 197, 94, 0.4);
}

.tech-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: 0.2s;
}

.tech-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}
