/* Images and Icons Styles for Sales Process Management Module */

/* Icon Styles */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.icon-sm {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
}

.icon-lg {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
}

/* Status Icons */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-icon.awaiting-response {
    background-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-icon.quoted {
    background-color: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.status-icon.negotiating {
    background-color: rgba(253, 126, 20, 0.2);
    color: #8a4a00;
}

.status-icon.accepted {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-icon.cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.status-icon.pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-icon.processing {
    background-color: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.status-icon.shipped {
    background-color: rgba(253, 126, 20, 0.2);
    color: #8a4a00;
}

.status-icon.delivered {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-icon.replied {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

/* Action Button Icons */
.action-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Vehicle Type Icons */
.vehicle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Price Type Icons */
.price-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 4px;
    margin-right: 0.25rem;
    color: var(--dark-gray);
    font-size: 0.7rem;
    font-weight: bold;
}

/* Country Flag Placeholders */
.country-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
    border: 1px solid var(--medium-gray);
    border-radius: 2px;
    margin-right: 0.5rem;
    font-size: 0.6rem;
    color: var(--secondary-color);
    overflow: hidden;
}

/* Currency Icons */
.currency-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 0.25rem;
}

/* Document Type Icons */
.document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.document-icon.pdf {
    background-color: #dc3545;
    color: white;
}

.document-icon.excel {
    background-color: #28a745;
    color: white;
}

.document-icon.csv {
    background-color: #17a2b8;
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Image Placeholders */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Avatar Placeholders */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

/* Brand Colors for Different Manufacturers */
.brand-toyota { color: #eb0a1e; }
.brand-honda { color: #cc0000; }
.brand-nissan { color: #c3002f; }
.brand-mazda { color: #0066cc; }
.brand-subaru { color: #0066cc; }
.brand-mitsubishi { color: #e60012; }
.brand-suzuki { color: #e4002b; }
.brand-daihatsu { color: #ff6600; }
.brand-isuzu { color: #e60012; }
.brand-lexus { color: #000000; }

/* Transmission Type Icons */
.transmission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.25rem;
    font-size: 0.7rem;
    font-weight: bold;
}

.transmission-icon.automatic {
    background-color: var(--info-color);
    color: white;
}

.transmission-icon.manual {
    background-color: var(--warning-color);
    color: var(--dark-gray);
}

/* Fuel Type Icons */
.fuel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.25rem;
    font-size: 0.7rem;
    font-weight: bold;
}

.fuel-icon.petrol {
    background-color: #ff6b6b;
    color: white;
}

.fuel-icon.diesel {
    background-color: #4ecdc4;
    color: white;
}

.fuel-icon.hybrid {
    background-color: #45b7d1;
    color: white;
}

.fuel-icon.electric {
    background-color: #96ceb4;
    color: white;
}

/* Drive Type Icons */
.drive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.25rem;
    font-size: 0.6rem;
    font-weight: bold;
    background-color: var(--secondary-color);
    color: white;
}

/* Priority Indicators */
.priority-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.priority-high {
    background-color: var(--danger-color);
}

.priority-medium {
    background-color: var(--warning-color);
}

.priority-low {
    background-color: var(--success-color);
}

/* Notification Badges */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
}

/* Progress Indicators */
.progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    position: relative;
}

.progress-ring.complete {
    border-color: var(--success-color);
    background-color: var(--success-color);
    color: white;
}

.progress-ring.in-progress {
    border-color: var(--info-color);
    border-top-color: var(--medium-gray);
    animation: spin 2s linear infinite;
}

/* Hover Effects for Interactive Images */
.interactive-image {
    transition: var(--transition);
    cursor: pointer;
}

.interactive-image:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* Image Filters */
.image-filter-grayscale {
    filter: grayscale(100%);
}

.image-filter-sepia {
    filter: sepia(100%);
}

.image-filter-blur {
    filter: blur(2px);
}

/* Responsive Image Handling */
@media (max-width: 768px) {
    .avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .vehicle-icon,
    .country-flag {
        width: 20px;
        height: 16px;
    }
    
    .document-icon,
    .status-icon {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .icon {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}

