/* Color Converter Plugin Styles */
.cccn-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header Styles */
.cccn-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.cccn-header h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.cccn-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Main Card */
.cccn-main-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Input Section */
.cccn-input-section {
    margin-bottom: 25px;
}

.cccn-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

#color-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

#color-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* Neon Blue Button Styles */
.cccn-btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,212,255,0.3);
    position: relative;
    overflow: hidden;
}

.cccn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,255,0.4);
}

.cccn-btn-primary:active {
    transform: translateY(0);
}

.cccn-btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cccn-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* Format Badges */
.format-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.format-badge {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: monospace;
    font-size: 0.8rem;
}

/* Result Section */
.cccn-result-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    animation: fadeIn 0.4s ease;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-header h3 {
    margin: 0;
    color: #333;
}

.result-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #555;
}

.result-value {
    font-family: monospace;
    font-size: 1rem;
    color: #333;
    word-break: break-all;
    text-align: right;
}

.color-name-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
}

/* Color Preview Section */
.cccn-preview-section {
    margin-top: 25px;
    text-align: center;
}

.preview-title {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.color-preview {
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: 2px solid #e0e0e0;
}

#preview-text {
    background: rgba(0,0,0,0.6);
    padding: 6px 14px;
    border-radius: 25px;
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Footer */
.cccn-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader Animation */
.btn-loader {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-message {
    background: #fee;
    color: #c00;
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid #c00;
    margin-top: 15px;
}

/* Copy Button Style */
.copy-btn {
    background: #f0f0f0;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 10px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cccn-container {
        margin: 15px;
        padding: 15px;
    }
    
    .cccn-header h1 {
        font-size: 1.3rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .cccn-btn-primary {
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .result-value {
        text-align: center;
    }
    
    .format-hint {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cccn-main-card {
        padding: 15px;
    }
    
    .color-preview {
        height: 80px;
    }
    
    .format-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .cccn-container {
        max-width: 90%;
    }
}