* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background-color: #ffffff;
    border-right: 1px solid #e9ecef;
    padding: 0;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.vat-notice {
    font-size: 11px;
    color: #6c757d;
    padding: 15px 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 0;
    background-color: #f8f9fa;
    font-weight: 400;
}

.nav-menu {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    margin: 0 10px 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 3px solid #1976d2;
    margin-left: 7px;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    min-width: 40px;
    position: relative;
}

.nav-icon i {
    font-size: 16px;
    color: #1976d2;
    margin-bottom: 2px;
    opacity: 0.8;
}

.nav-item.active .nav-icon i {
    color: #1976d2;
    opacity: 1;
}

.nav-content h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.nav-content p {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
    font-weight: 400;
}

.nav-item.active .nav-content h3 {
    color: #1976d2;
}

.nav-item.active .nav-content p {
    color: #5a6c7d;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background-color: #ffffff;
    overflow-y: auto;
}

/* Header Styles */
.header {
    padding: 20px 30px 0;
    border-bottom: 1px solid #e9ecef;
    background-color: white;
}

.location-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.location-btn {
    padding: 6px 14px;
    border: 1px solid #1976d2;
    background-color: white;
    color: #1976d2;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.location-btn:hover {
    background-color: #f8f9fa;
}

.location-btn.active {
    background-color: #1976d2;
    color: white;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background-color: transparent;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: #1976d2;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    background-color: #f8f9fa;
}

/* Pricing Content Styles */
.pricing-content {
    padding: 25px 30px;
    background-color: white;
}

.pricing-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.pricing-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.pricing-header p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    font-weight: 400;
}

/* Pricing Table Styles */
.pricing-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 13px;
}

thead {
    background-color: #f8f9fa;
}

th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
    vertical-align: top;
    color: #333;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Price Container Styles */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.current-price {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.original-price {
    font-size: 13px;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 400;
}

.savings {
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
    margin: 8px 0;
}

.dropdown-btn {
    width: 100%;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 400;
}

.dropdown-btn:hover {
    border-color: #1976d2;
    background-color: #f8f9fa;
}

.dropdown-btn i {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #6c757d;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 2px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Create Button Styles */
.create-btn {
    padding: 8px 16px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 8px;
    width: 100%;
}

.create-btn:hover {
    background-color: #1565c0;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Custom Configuration Form Styles */
.custom-config-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.form-section {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.form-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.form-group select:hover {
    border-color: #1976d2;
}

.form-group select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* Price Summary Styles */
.price-summary {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: #6c757d;
    font-weight: 500;
}

.summary-item span:last-child {
    color: #333;
    font-weight: 600;
}

.summary-item.total {
    font-size: 16px;
    font-weight: 700;
    color: #1976d2;
    border-top: 2px solid #e9ecef;
    padding-top: 12px;
    margin-top: 8px;
}

.custom-create {
    margin-top: 20px;
    font-size: 14px;
    padding: 12px 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        width: 280px;
    }
    
    .pricing-content {
        padding: 20px;
    }
    
    .header {
        padding: 15px 20px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .header {
        padding: 15px 20px 0;
    }
    
    .pricing-content {
        padding: 15px;
    }
    
    .pricing-table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .price-container {
        min-width: 150px;
    }
    
    .custom-config-form {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Additional improvements for exact match */
.nav-item {
    border-left: 3px solid transparent;
}

.nav-item.active {
    background: linear-gradient(90deg, #e3f2fd 0%, #f8f9fa 100%);
}

.location-btn {
    font-family: inherit;
    letter-spacing: 0.3px;
}

.tab-btn {
    font-family: inherit;
    letter-spacing: 0.2px;
}

.pricing-header h1 {
    letter-spacing: -0.5px;
}

.current-price {
    letter-spacing: 0.2px;
}

.dropdown-btn {
    font-family: inherit;
    letter-spacing: 0.1px;
}

/* Table improvements */
th:first-child,
td:first-child {
    padding-left: 20px;
}

th:last-child,
td:last-child {
    padding-right: 20px;
}

/* Better spacing for price columns */
td:nth-child(5) {
    text-align: center;
    font-weight: 500;
}

/* Improved hover effects */
.nav-item:hover .nav-icon i {
    transform: scale(1.1);
}

.location-btn:hover {
    transform: translateY(-1px);
}

.create-btn:hover {
    transform: translateY(-1px);
}

/* Form improvements */
.form-group select {
    font-family: inherit;
}

.price-summary {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Animation for tab switching */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

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