:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
}

body {
    /*background: linear-gradient(135deg, #f8f9fa, #e9ecef);*/
    color: #333;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    min-height: 100vh;
    padding-bottom: 60px;
}

.header-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 70%);
}

.color-title {
    font-weight: 800;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.color-card {
    height: 160px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
}

.color-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.color-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
    pointer-events: none;
}

.color-value {
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 3px 0;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-card:hover .color-value {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.section-title {
    position: relative;
    margin: 3rem 0 2rem;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

.info-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 6px;
    background: white;
    padding: 0 8px;
}

.info-card-header {
    background: linear-gradient(135deg, var(--secondary-color), #1a252f);
    color: white;
    padding: 1.8rem;
    text-align: center;
}

.info-card-body {
    padding: 2rem;
}

.palette-example {
    height: 35px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.palette-title {
    font-weight: 600;
    margin-top: 5px;
    font-size: 0.9rem;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.color-card:hover .btn-copy {
    opacity: 1;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.filter-btn {
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer {
    background: var(--secondary-color);
    color: #ecf0f1;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-radius: 30px 30px 0 0;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .color-card {
        height: 140px;
    }

    .header-section {
        padding: 3rem 0;
    }

    .color-value {
        font-size: 0.85rem;
        min-width: 110px;
        padding: 4px 8px;
    }
}

.color-intensity {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
}
