/**
 * Component Styles
 * CSS cho các component và giao diện mới
 * @author POS System
 * @version 1.0
 */

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: none;
}

.modal.active {
    display: block;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    min-width: 600px;
    min-height: 400px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

/* ===== TABLE STYLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== SCREEN HEADER ===== */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.screen-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ===== SCREEN FILTERS ===== */
.screen-filters {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-group {
    flex: 1;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon i {
    color: #007bff;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-edit-product,
.btn-edit-customer {
    background: #ffc107;
    color: #212529;
}

.btn-edit-product:hover,
.btn-edit-customer:hover {
    background: #e0a800;
}

.btn-delete-product,
.btn-delete-customer {
    background: #dc3545;
    color: white;
}

.btn-delete-product:hover,
.btn-delete-customer:hover {
    background: #c82333;
}

.btn-adjust-stock,
.btn-view-history,
.btn-send-message {
    background: #17a2b8;
    color: white;
}

.btn-adjust-stock:hover,
.btn-view-history:hover,
.btn-send-message:hover {
    background: #138496;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.new {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.lost {
    background: #fff3cd;
    color: #856404;
}

/* ===== STOCK STATUS ===== */
.stock-quantity {
    font-weight: bold;
}

.stock-quantity.in-stock {
    color: #28a745;
}

.stock-quantity.low-stock {
    color: #ffc107;
}

.stock-quantity.out-of-stock {
    color: #dc3545;
}

/* ===== ALERTS PANEL ===== */
.alerts-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alerts-panel h3 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alert-item.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.alert-item.danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.alert-desc {
    font-size: 14px;
    color: #666;
}

.btn-quick-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

/* ===== REPORTS GRID ===== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.metric:last-child {
    border-bottom: none;
}

.metric .label {
    color: #666;
    font-size: 14px;
}

.metric .value {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

/* ===== SETTINGS GRID ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== CONTENT PLACEHOLDER ===== */
.content-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.content-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

.content-placeholder h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.content-placeholder p {
    margin: 0;
    font-size: 16px;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

.notification.info {
    background: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .screen-filters {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content.large {
        min-width: 95vw;
        min-height: 80vh;
    }
    
    .screen-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-3 {
    margin-top: 15px;
}

.mb-3 {
    margin-bottom: 15px;
}

.p-3 {
    padding: 15px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ===== WARRANTY MANAGEMENT STYLES ===== */
.search-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form .form-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    align-items: end;
}

.lookup-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.results-list {
    display: grid;
    gap: 15px;
}

.lookup-result-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.lookup-result-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.result-header h4 {
    margin: 0;
    color: #333;
}

.result-details p {
    margin: 5px 0;
    color: #666;
}

.result-actions {
    margin-top: 15px;
    text-align: right;
}

/* Process Interface Styles */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: calc(100vh - 200px);
}

.process-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.column-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.column-header .count {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.column-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.process-claim-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.process-claim-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.claim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.claim-header strong {
    color: #333;
    font-size: 0.9rem;
}

.claim-type {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.claim-details p {
    margin: 3px 0;
    font-size: 0.8rem;
    color: #666;
}

.claim-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.claim-actions .btn {
    padding: 4px 8px;
    font-size: 0.7rem;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* ===== REPAIR MANAGEMENT STYLES ===== */
.repair-types-grid {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.types-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.repair-type-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.repair-type-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.type-header h4 {
    margin: 0;
    color: #333;
}

.type-actions {
    display: flex;
    gap: 5px;
}

.type-details .description {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.type-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-info .price {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
}

.type-info .hours {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}

/* Priority badges */
.priority-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
}

.priority-badge.normal {
    background: #d1ecf1;
    color: #0c5460;
}

.priority-badge.high {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.urgent {
    background: #f8d7da;
    color: #721c24;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.status-received {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-diagnosed {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ===== PC BUILD CONFIGURATION STYLES ===== */
.pc-build-workspace {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: calc(100vh - 200px);
}

.build-config-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.config-header h3 {
    margin: 0;
    color: #333;
}

.config-actions {
    display: flex;
    gap: 10px;
}

.build-info {
    margin-bottom: 25px;
}

.component-categories {
    margin-bottom: 25px;
}

.category-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.category-item.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
}

.category-header i {
    margin-right: 10px;
    color: #666;
}

.category-header span {
    font-weight: 500;
}

.category-header .required {
    color: #dc3545;
    margin-left: 5px;
}

.selected-component {
    padding: 12px 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.selected-component .placeholder {
    color: #999;
    font-style: italic;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-price {
    font-size: 0.9rem;
    color: #007bff;
}

.build-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.summary-header h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.profit {
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.summary-row .positive {
    color: #28a745;
}

.summary-row .negative {
    color: #dc3545;
}

.summary-row input {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
}

.component-selection-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.selection-header h3 {
    margin: 0;
    color: #333;
}

.selection-search input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.component-list {
    flex: 1;
    overflow-y: auto;
}

.no-selection {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-selection i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.components-grid {
    display: grid;
    gap: 15px;
}

.component-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.component-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.component-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1rem;
}

.component-info p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #666;
}

.component-price {
    color: #007bff !important;
    font-weight: bold;
}

.component-wattage {
    color: #28a745 !important;
}

.component-stock {
    color: #6c757d !important;
}

.component-actions {
    margin-top: 10px;
    text-align: right;
}

.compatibility-alerts {
    margin-top: 20px;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .pc-build-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .component-selection-panel {
        height: 400px;
    }
}

/* ===== REPORTS DASHBOARD STYLES ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.kpi-card.revenue {
    border-left: 4px solid #28a745;
}

.kpi-card.orders {
    border-left: 4px solid #007bff;
}

.kpi-card.customers {
    border-left: 4px solid #17a2b8;
}

.kpi-card.profit {
    border-left: 4px solid #ffc107;
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

.kpi-card.revenue .kpi-icon {
    background: #28a745;
}

.kpi-card.orders .kpi-icon {
    background: #007bff;
}

.kpi-card.customers .kpi-icon {
    background: #17a2b8;
}

.kpi-card.profit .kpi-icon {
    background: #ffc107;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.kpi-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.kpi-change {
    font-size: 0.8rem;
    font-weight: bold;
}

.kpi-change:before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 5px;
}

.kpi-change[data-positive="true"] {
    color: #28a745;
}

.kpi-change[data-positive="true"]:before {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #28a745;
}

.kpi-change[data-positive="false"] {
    color: #dc3545;
}

.kpi-change[data-positive="false"]:before {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #dc3545;
}

.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.chart-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.chart-content {
    height: 300px;
}

.tables-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-section {
    margin-bottom: 30px;
}

.table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.table-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.table-content {
    overflow-x: auto;
}

.text-center {
    text-align: center;
}

/* Responsive adjustments for reports */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .tables-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        padding: 15px;
    }

    .kpi-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .kpi-value {
        font-size: 1.5rem;
    }
}

/* ===== SETTINGS INTERFACE STYLES ===== */
.settings-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.settings-nav {
    background: white;
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.settings-tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.settings-tab:hover {
    background: #f8f9fa;
}

.settings-tab.active {
    background: #e3f2fd;
    border-left-color: #007bff;
    color: #007bff;
}

.settings-tab i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.settings-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.backup-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.backup-actions .btn {
    flex: 1;
}

/* Form styling for settings */
.settings-content .form-group {
    margin-bottom: 20px;
}

.settings-content .form-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.settings-content .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.settings-content .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.settings-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.settings-content textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Responsive adjustments for settings */
@media (max-width: 1024px) {
    .settings-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px 20px;
    }

    .settings-tab {
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .settings-tab.active {
        border-left: none;
        border-bottom-color: #007bff;
    }
}

@media (max-width: 768px) {
    .settings-content {
        padding: 20px;
    }

    .settings-content .form-row {
        grid-template-columns: 1fr;
    }

    .backup-actions {
        flex-direction: column;
    }

    .settings-tab span {
        display: none;
    }

    .settings-tab {
        min-width: 60px;
    }
}
