/* Custom styles for Car Boot Logo Generator */

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(243 244 246);
}

.dark ::-webkit-scrollbar-track {
    background: rgb(31 41 55);
}

::-webkit-scrollbar-thumb {
    background: rgb(156 163 175);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(107 114 128);
}

.dark ::-webkit-scrollbar-thumb {
    background: rgb(75 85 99);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgb(107 114 128);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgb(37 99 235), rgb(126 34 206));
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, rgb(34 197 94), rgb(20 184 166));
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgb(22 163 74), rgb(13 148 136));
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Enhanced card styles */
.card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Drag and drop zone enhancements */
.drop-zone {
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.drop-zone:hover::before {
    left: 100%;
}

/* Canvas container */
.canvas-container {
    position: relative;
    display: inline-block;
}

.canvas-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgb(59 130 246), rgb(147 51 234), rgb(34 197 94), rgb(59 130 246));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.canvas-container:hover::after {
    opacity: 1;
}

/* Progress bar animation */
@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-bar {
    animation: progressPulse 1.5s ease-in-out infinite;
}

/* File item animations */
.file-item {
    animation: slideInUp 0.3s ease-out;
}

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

/* Responsive design enhancements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .text-responsive {
        font-size: 1.5rem;
    }
    
    .canvas-responsive {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .btn-responsive {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Enhanced form controls */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Color picker enhancements */
input[type="color"] {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="color"]:hover {
    transform: scale(1.05);
}

/* Range slider enhancements */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: rgb(229 231 235);
    height: 6px;
    border-radius: 3px;
}

.dark input[type="range"]::-webkit-slider-track {
    background: rgb(75 85 99);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: rgb(59 130 246);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: rgb(37 99 235);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
    background: rgb(229 231 235);
    height: 6px;
    border-radius: 3px;
    border: none;
}

.dark input[type="range"]::-moz-range-track {
    background: rgb(75 85 99);
}

input[type="range"]::-moz-range-thumb {
    background: rgb(59 130 246);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: rgb(37 99 235);
    transform: scale(1.1);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(31 41 55);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid rgb(59 130 246);
    outline-offset: 2px;
}

/* Custom selection styles */
::selection {
    background: rgba(59, 130, 246, 0.3);
}

.dark ::selection {
    background: rgba(147, 51, 234, 0.3);
}

