
.color-picker-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.form-control-color {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.color-preview {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background-color: #3498db;
    position: relative;
    overflow: hidden;
}

.color-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #fff 25%, transparent 25%), 
                linear-gradient(-45deg, #fff 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #fff 75%), 
                linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    z-index: -1;
}

.color-format-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.color-format-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.format-header {
    margin-bottom: 10px;
}

.format-header h6 {
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 500;
}

.analysis-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.analysis-card h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
}

.contrast-demo {
    background-color: #3498db;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.palette-section {
    margin-bottom: 15px;
}

.palette-section h6 {
    color: #495057;
    font-weight: 600;
}

.color-palette-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.palette-color {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.palette-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.palette-color::after {
    content: attr(data-color);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #6c757d;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.palette-color:hover::after {
    opacity: 1;
}

.utility-buttons .btn {
    margin: 5px;
    min-width: 120px;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .color-format-card {
        margin-bottom: 15px;
    }
    
    .utility-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .color-palette-row {
        justify-content: center;
    }
}

/* 알림 메시지 스타일 */
.alert-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
