/* =========================================
   ADMIN CSS STYLES
   ========================================= */

.admin-body {
    background-color: var(--bg-dark);
}

.admin-navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.admin-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.admin-container {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-size: 2.5rem;
}

.admin-header p {
    color: var(--text-muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.admin-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.admin-card h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.price-preview {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-row:last-child {
    margin-bottom: 0;
}

.highlight-price {
    font-size: 1.125rem;
    color: var(--text-main);
}

.highlight-price strong {
    color: var(--accent-primary);
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 1.5rem;
}
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Quotation Panel Styles (A4 Size Simulation) */
.quotation-panel {
    background-color: #fff;
    color: #000;
    width: 210mm;
    min-height: 297mm;
    padding: 15mm 20mm;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    position: relative;
}

.quotation-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #000;
    padding-bottom: 1.5rem;
}

.q-brand h2 {
    font-family: var(--font-heading);
    color: #000;
    margin-bottom: 0.25rem;
}

.q-brand p {
    font-size: 0.875rem;
    color: #333;
}

.q-meta {
    text-align: right;
}

.q-meta h2 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: #555;
}

.customer-details input {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    color: #000;
}
.customer-details label {
    color: #333;
}

.q-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.q-table th {
    background-color: #f0f0f0;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 0.875rem;
}

.q-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.q-table th:nth-child(2),
.q-table td:nth-child(2),
.q-table th:nth-child(3),
.q-table td:nth-child(3),
.q-table th:nth-child(4),
.q-table td:nth-child(4) {
    text-align: right;
}

.btn-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.25rem;
}

.btn-remove:hover {
    color: #bd2130;
}

.q-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top: 2px solid #000;
    padding-top: 1rem;
}

.total-row {
    font-size: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.q-tax-note {
    font-size: 0.75rem;
    color: #666;
}

.admin-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 0;
    }
    body * {
        visibility: hidden;
    }
    .admin-body {
        background-color: #fff;
    }
    #printable-quotation, #printable-quotation * {
        visibility: visible;
    }
    #printable-quotation {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        min-height: 100vh;
        border: none;
        padding: 15mm;
        margin: 0;
        box-shadow: none;
    }
    .admin-navbar, .selection-panel, .admin-actions, .admin-header, .btn-remove {
        display: none !important;
    }
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .quotation-panel {
        width: 100%;
        min-height: auto;
        padding: 2rem;
    }
}
