@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
    width: 480px;
}

body {
    font-size: 14px;
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    color: #1a1a1a;
    overflow: auto;
    margin: 0;
    line-height: 1.6;
    width: 480px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 10px;
}

.extension-body {
    position: relative;
    background: #ffffff;
    min-height: 100vh;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.view-header.logo-section {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
    margin-bottom: 0;
    padding: 24px;
    text-align: center;
}

.view-header.logo-section h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-center {
    text-align: center;
}

.dis-flex {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.menu-item {
    color: #FFF;
    width: 100%;
    font-weight: 600;
    font-size: 13px;
}

.menu-item > div {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.sorts-pages {
    font-size: 14px;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    color: #1a1a1a;
    font-weight: 500;
    width: 100%;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.sorts-pages:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.sorts-pages:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-key {
    font-size: 14px;
    padding: 10px 12px;
    width: 150px;
    border: 2px solid #e8e8e8;
    color: #1a1a1a;
    font-weight: 400;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.search-key:hover {
    border-color: #2196F3;
}

.search-key:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.loader {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 11111111111;
    backdrop-filter: blur(8px);
}

.overlay {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 11111111111;
    backdrop-filter: blur(4px);
}

.overlay .overlayText {
    margin: 0 auto;
    position: relative;
    top: 50%;
    left: calc(50% - 75px);
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.loader span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid #BBDEFB;
    border-top-color: #2196F3;
    border-right-color: #2196F3;
    animation: spinner 0.8s linear infinite;
    margin: auto;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.category-section-main {
    background: #ffffff;
}

.category-top-header {
    padding: 20px 24px 0;
}

.category-top-header.filter-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f0f0;
}

.category-sec-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-URL-title h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dev-tool-label label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.filter-option {
    padding: 20px 24px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.selected-pages {
    margin-bottom: 12px;
}

.category-section-hr {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #2196F3 50%, transparent 100%);
    opacity: 0.3;
    margin: 0 24px;
}

.category-section-fix {
    padding: 20px 24px;
    max-height: 500px;
    overflow-y: auto;
}

.category-section-fix::-webkit-scrollbar {
    width: 6px;
}

.category-section-fix::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 10px;
}

.category-section-box-fix {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-inner-fix {
    width: 100%;
}

.category-box {
    padding: 16px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.category-box:hover {
    border-color: #2196F3;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.12);
    transform: translateY(-2px);
}

.category-box.design-1 {
    display: flex;
    flex-direction: column;
}

.category-box a {
    text-decoration: none;
}

.category-box a:hover h4 {
    color: #1976D2;
}

.car-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.car-name.error {
    color: #ff4444;
    text-align: center;
    padding: 20px;
}

.car-details {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: start;
}

.car-image {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    border: 2px solid #f0f0f0;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.car-detail-list-item {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.car-detail-list-item .value {
    color: #1a1a1a;
    font-weight: 600;
}

.car-detail-price {
    font-size: 20px;
    font-weight: 800;
    color: #2196F3;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 12px 20px;
    border-radius: 12px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    border: 2px solid #BBDEFB;
}

.category-add-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    border-top: 2px solid #f0f0f0;
}

.checkbox-right-dropdown a {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    text-align: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkbox-right-dropdown a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
}

.split_logo {
    display: flex;
    align-items: center;
}

.split_logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.split_logo .tag-by {
    font-weight: 500;
}

.split_logo img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.submit-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
}

.overlay .Add_Overlay-btn {
    position: absolute;
    bottom: 20px;
    left: 24px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    text-align: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

input[type="hidden"] {
    display: none;
}

#car_model {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#car_color, #car_damage {
    font-weight: 600;
}

.filter-toggle-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.filter-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.filters-container {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    opacity: 1;
    padding: 0 24px;
}

.filters-container.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 24px;
    overflow: hidden;
}

.google-ad-container {
    width: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.google-ad-container-bottom {
    width: 100%;
    max-height: 120px;
    overflow: hidden;
}

.extension-body {
    transition: padding-bottom 0.3s ease;
}

@media (max-width: 480px) {
    .car-details {
        grid-template-columns: 1fr;
    }
    
    .car-image {
        width: 100%;
        height: 200px;
    }
    
    .car-detail-price {
        text-align: center;
        width: 100%;
    }
}
