/* Rust Color Tool CSS */

/* Custom font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header styling */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    color: #B7410E;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Color display */
#currentColor {
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(183, 65, 14, 0.2);
}

/* Sliders */
.form-range {
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    background-color: #B7410E;
    width: 18px;
    height: 18px;
}

.form-range::-moz-range-thumb {
    background-color: #B7410E;
    width: 18px;
    height: 18px;
}

/* Preset colors */
.preset-color {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.preset-color:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.preset-color.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #B7410E;
}

/* Palette colors */
.palette-color {
    transition: all 0.3s ease;
    position: relative;
}

.palette-color:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.palette-color:hover::after {
    content: "Click to copy";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* Copy buttons */
.copy-icon {
    transition: all 0.2s ease;
}

.copy-icon:hover {
    color: #B7410E !important;
    transform: scale(1.2);
}

/* Color combinations */
.color-sample {
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.1);
}

/* Related colors */
.col a {
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.col a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Toast notification */
.toast {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #B7410E !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .palette-color:hover::after {
        display: none;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #B7410E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8F320B;
}