/* ===== ROCKAUTO INSPIRED BASE STYLES ===== */
:root {
    --primary: #2a5c82;
    --secondary: #e8b54d;
    --accent: #2e8540;
    --danger: #dc3545;
    --warning: #e67e22;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #6c757d;
    --border: #dee2e6;
}

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

body {
    background-color: #f5f5f5;
    color: var(--dark);
    font-size: 13px;
    line-height: 1.4;
}

.container {
    width: 98%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e6e6e6;
    border: 1px solid #adadad;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: #1f4565;
    color: white;
}

.btn-primary:hover {
    background-color: #1f4565;
    text-decoration: none;
}

.btn-success {
    background-color: var(--accent);
    border-color: #247a3a;
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    border-color: #c82333;
    color: white;
}

/* ===== HEADER ===== */
.top-header {
    background-color: #333;
    color: #ccc;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 3px solid var(--primary);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-links a {
    color: #ccc;
}

.header-links a:hover {
    color: white;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    border: 1px solid #555;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 10px;
}

.lang-btn {
    padding: 4px 10px;
    background: #444;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

.main-header {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
}

.logo span {
    color: var(--secondary);
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--dark);
    font-weight: bold;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
}

/* ===== MAIN LAYOUT ===== */
.page-layout {
    display: flex;
    margin-top: 20px;
    gap: 20px;
    min-height: 600px;
}

.main-content {
    flex: 1;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-box {
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px;
}

.sidebar-box h3 {
    background-color: #f0f0f0;
    margin: -15px -15px 15px;
    padding: 10px 15px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    color: var(--primary);
}

/* ===== COMMON COMPONENTS ===== */
.selection-block {
    background-color: #f0f8ff;
    border: 2px solid #cfe2f3;
    padding: 20px;
    margin-bottom: 25px;
}

.selection-block h1 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.selection-steps {
    display: flex;
    margin-top: 20px;
    gap: 30px;
}

.selection-step {
    flex: 1;
}

.step-num {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-card {
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.price-gate {
    background-color: #fff3cd;
    border: 1px dashed #ffc107;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 12px;
}

.price-gate i {
    color: #856404;
    margin-right: 5px;
}

.service-meta {
    color: #666;
    font-size: 12px;
    margin: 8px 0;
}

/* ===== TABLES ===== */
.service-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.service-table th {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
    color: var(--primary);
}

.service-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
}

.service-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--warning);
}

.status-processing {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.status-ready {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.status-completed {
    background-color: rgba(46, 133, 64, 0.1);
    color: var(--accent);
}

.status-return {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

/* ===== ORDER ITEMS ===== */
.order-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-id {
    font-weight: bold;
    color: var(--primary);
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 0 20px;
    margin-top: 40px;
    font-size: 12px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* ===== UTILITY CLASSES ===== */
.section-title {
    color: var(--primary);
    font-size: 18px;
    margin: 20px 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--secondary);
}

.info-note {
    background-color: #e7f3ff;
    border: 1px solid #b6d4fe;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
}

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

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

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

.modal-content {
    background-color: white;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: -1;
    }
    .selection-steps {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .order-details {
        grid-template-columns: 1fr;
    }
}