.color-value-item {
    line-height: 1.5;
}

#colorDetails ul {
    font-size: 12px;
}

.colorDetails h3 {
    line-height: 1.5;
    font-size: 14px;
}

.color-values p {
    font-size: 12px;
}

.modal-content p {
    font-size: 12px;
}

.color-values row {
    float: left;
    display: block;
    width: 30%;
}


/* Button Styles */

.btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Icon Styles */

.feather {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

button:hover .feather {
    transform: scale(1.1);
}


/* Navigation */

.navbar {
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5813ce;
    text-decoration: none;
    font-family: var(--font-mono);
    transition: color 0.2s;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    color: var(--primary-color);
}

.navbar-toggler i {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}


/* Banner */

.banner {
    background: linear-gradient(135deg, #4f46e5 0%, #082d91 100%);
    padding: 4rem 0 2rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}
.banner {
    margin-top: 70px;
    padding: 2rem 1rem;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.header {
    max-width: 100%;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}


/* Card Styles */

.card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Enhanced Footer Styles */

.footer {
    background: linear-gradient(135deg, #b007c6 0%, #f1db18 100%);
    padding: 2.5rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: backgroundMove 30s linear infinite;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: white;
    transform: translateY(-1px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.heart {
    color: #ef4444;
    display: inline-block;
    margin: 0 0.25rem;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* Layout */

.app-layout,
.wallpaper-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}


/* Sidebar */

.sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    animation: slideInLeft 0.5s ease-out;
}


/* Controls Panel */

.controls {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.control-group {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.4s ease-out forwards;
    opacity: 0;
}

.control-group:nth-child(1) {
    animation-delay: 0.3s;
}

.control-group:nth-child(2) {
    animation-delay: 0.4s;
}

.control-group:nth-child(3) {
    animation-delay: 0.5s;
}


/* Labels */

.label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
}


/* Preview Container */

.preview-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    animation: slideInUp 0.5s ease-out;
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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


/* Responsive Layout */

@media (max-width: 1024px) {
    .app-layout,
    .wallpaper-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 3rem 0;
    }
}


/* Back to Top Button */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
    .back-to-top i {
        width: 18px;
        height: 18px;
    }
}


/* Mobile styles */

@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    .navbar-nav.show {
        display: flex;
    }
    .nav-link {
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    .nav-link.active::after {
        display: none;
    }
    .main-content {
        margin-top: 70px;
        padding: 1rem;
    }
}


/* Add smooth transition for menu */

.navbar-nav {
    transition: all 0.3s ease-in-out;
}


/* Mobile optimizations */

@media (max-width: 768px) {
    /* Compact header */
    .banner {
        padding: 1rem;
        margin-top: 60px;
    }
    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .header p {
        font-size: 0.875rem;
    }
    /* Compact navbar */
    .navbar {
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .navbar-content {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    .navbar-brand {
        font-size: 1.125rem;
    }
    /* Improved mobile navigation */
    .navbar-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }
    .navbar-nav.show {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .nav-link {
        padding: 0.75rem;
        text-align: center;
        border-radius: 6px;
        transition: background-color 0.2s;
    }
    .nav-link:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
    /* Compact content */
    .main-content {
        padding: 0.75rem;
        margin-top: 60px;
    }
    /* Grid layouts */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
    /* Card styles */
    .card {
        margin-bottom: 0;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    /* Controls */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        height: 40px;
        justify-content: center;
    }
    /* Touch targets */
    .clickable {
        min-height: 44px;
        min-width: 44px;
    }
    /* Footer optimizations */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .footer-social {
        justify-content: center;
    }
}


/* Extra small devices */

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner {
        padding: 0.75rem;
    }
    .header h1 {
        font-size: 1.25rem;
    }
    .header p {
        font-size: 0.813rem;
    }
    .btn {
        font-size: 0.813rem;
        padding: 0.5rem 0.75rem;
    }
}


/* Hover effects only for non-touch devices */

@media (hover: hover) {
    .hover-effect:hover {
        opacity: 1;
        transform: translateY(-1px);
    }
}