/**
 * JCOGS Image Pro - Duration Form Field Styles
 * =============================================
 * Styling for enhanced duration input fields with validation feedback.
 * 
 * @category   ExpressionEngine Add-on
 * @package    JCOGS Image Pro
 * @author     JCOGS Design <contact@jcogs.net>
 * @copyright  Copyright (c) 2021 - 2025 JCOGS Design
 * @license    https://jcogs.net/add-ons/license/jcogs_img_pro
 * @version    2.0.6
 * @link       https://JCOGS.net/
 * @since      Duration Enhancement Implementation
 */

/* Duration Input Field Styling */
.duration-input {
    position: relative;
}

.duration-input:focus {
    border-color: #1f7dc4;
    box-shadow: 0 0 0 2px rgba(31, 125, 196, 0.1);
}

/* Duration Help Text */
.duration-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.duration-help .text-muted {
    color: #6c757d;
}

.duration-help strong {
    color: #384551;
    font-weight: 600;
}

/* Cache Duration Select Styling */
.cache-duration-select {
    margin-bottom: 0.75rem;
}

.cache-duration-custom-field {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e1e7ed;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cache-duration-custom-field.show {
    display: block;
}

.cache-duration-custom-field.hide {
    display: none;
}

/* Validation States */
.duration-input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.duration-input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.duration-help.error {
    color: #dc3545;
}

.duration-help.success {
    color: #28a745;
}

/* Example Text Styling */
.duration-examples {
    font-style: italic;
    color: #8892a4;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .duration-help {
        font-size: 0.8125rem;
    }
    
    .duration-examples {
        font-size: 0.75rem;
    }
}
