/* ============================================
   DOG FORM STYLES - Create/Edit Dog Forms
   ============================================ */

/* Form Container */
.dog-form-container {
    padding: 40px 48px;
}

@media (max-width: 768px) {
    .dog-form-container {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .dog-form-container {
        padding: 24px 16px;
    }
}

/* Alert List Styling */
.alert-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.alert ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

/* Personality Stats Section */
.personality-stats-section {
    background: var(--card-secondary);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

[data-theme="dark"] .personality-stats-section {
    background: #111827;
    border-color: #2d3748;
}

.personality-stats-title {
    margin-top: 0;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

/* Stat Group */
.stat-group {
    margin-bottom: 28px;
}

.stat-group:last-child {
    margin-bottom: 0;
}

/* Stat Labels with Colors */
.stat-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.stat-label i {
    margin-right: 8px;
}

.stat-label-energy {
    color: #f59e0b;
}

.stat-label-energy i {
    color: #f59e0b;
}

.stat-label-friendliness {
    color: #ef4444;
}

.stat-label-friendliness i {
    color: #ef4444;
}

.stat-label-intelligence {
    color: #8b5cf6;
}

.stat-label-intelligence i {
    color: #8b5cf6;
}

.stat-label-loyalty {
    color: #14b8a6;
}

.stat-label-loyalty i {
    color: #14b8a6;
}

/* Stat Value Display */
.stat-value-display {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.stat-value-display span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-value-display span {
    color: #9ca3af;
}

.stat-value-number {
    font-weight: 600;
    font-size: 1.05rem;
}

.stat-value-number.energy {
    color: #f59e0b;
}

.stat-value-number.friendliness {
    color: #ef4444;
}

.stat-value-number.intelligence {
    color: #8b5cf6;
}

.stat-value-number.loyalty {
    color: #14b8a6;
}

/* Trait Input Groups */
.trait-input-group {
    margin-bottom: 24px;
}

.trait-input-group:last-child {
    margin-bottom: 0;
}

.trait-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
}

[data-theme="dark"] .trait-label {
    color: #f8fafb;
}

.trait-label i {
    margin-right: 8px;
}

.trait-label-paw i { color: #1fb6ff; }
.trait-label-star i { color: #fbbf24; }
.trait-label-magic i { color: #8b5cf6; }
.trait-label-egg i { color: #f97316; }

/* Info Text */
.info-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

[data-theme="dark"] .info-text {
    color: #9ca3af;
}

.info-text i {
    margin-right: 4px;
}

/* Divider */
.form-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--border);
    opacity: 0.5;
}

[data-theme="dark"] .form-divider {
    border-top-color: #2d3748;
}

/* Upload Section Text */
.upload-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

[data-theme="dark"] .upload-info {
    color: #9ca3af;
}

/* Hidden File Input */
.hidden-file-input {
    display: none;
}

/* Upload Progress Styling */
.upload-progress-container {
    display: none;
    margin-top: 16px;
}

.upload-progress-bar {
    height: 8px;
    border-radius: 10px;
    background: var(--input-border);
}

[data-theme="dark"] .upload-progress-bar {
    background: #2d3748;
}

.upload-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.upload-status-text {
    color: var(--accent);
    margin-top: 8px;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Upload Success Message */
.upload-success-container {
    display: none;
    margin-top: 16px;
}

.upload-success-box {
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    border-radius: 8px;
}

[data-theme="dark"] .upload-success-box {
    background: rgba(16, 185, 129, 0.15);
}

.upload-success-text {
    margin: 0;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="dark"] .upload-success-text {
    color: #10b981;
}

.upload-success-text i {
    margin-right: 6px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 576px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .personality-stats-section {
        padding: 24px;
    }
    
    .personality-stats-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .stat-group {
        margin-bottom: 20px;
    }
    
    .trait-input-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .personality-stats-section {
        padding: 20px;
    }
    
    .personality-stats-title {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .stat-group {
        margin-bottom: 16px;
    }
    
    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .trait-input-group {
        margin-bottom: 16px;
    }
    
    .trait-label {
        font-size: 0.9rem;
    }
}

/* Range Slider Styles */
.range-slider-energy,
.range-slider-friendliness,
.range-slider-intelligence,
.range-slider-loyalty {
    width: 100%;
    height: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
}

.range-slider-energy {
    background: linear-gradient(90deg, #f59e0b 0%, #fb923c 100%);
}

.range-slider-friendliness {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.range-slider-intelligence {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.range-slider-loyalty {
    background: linear-gradient(90deg, #14b8a6 0%, #06b6d4 100%);
}

/* WebKit Slider Thumbs */
.range-slider-energy::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #f59e0b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-energy::-webkit-slider-thumb {
    background: #1a2332;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-energy::-webkit-slider-thumb:hover {
    background: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.range-slider-friendliness::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #ef4444;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-friendliness::-webkit-slider-thumb {
    background: #1a2332;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-friendliness::-webkit-slider-thumb:hover {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.range-slider-intelligence::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #8b5cf6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-intelligence::-webkit-slider-thumb {
    background: #1a2332;
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-intelligence::-webkit-slider-thumb:hover {
    background: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.range-slider-loyalty::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #14b8a6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-loyalty::-webkit-slider-thumb {
    background: #1a2332;
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-loyalty::-webkit-slider-thumb:hover {
    background: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Firefox Slider Thumbs */
.range-slider-energy::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #f59e0b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-energy::-moz-range-thumb {
    background: #1a2332;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-energy::-moz-range-thumb:hover {
    background: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.range-slider-friendliness::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #ef4444;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-friendliness::-moz-range-thumb {
    background: #1a2332;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-friendliness::-moz-range-thumb:hover {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.range-slider-intelligence::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #8b5cf6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-intelligence::-moz-range-thumb {
    background: #1a2332;
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-intelligence::-moz-range-thumb:hover {
    background: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.range-slider-loyalty::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #14b8a6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .range-slider-loyalty::-moz-range-thumb {
    background: #1a2332;
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.range-slider-loyalty::-moz-range-thumb:hover {
    background: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Styled Input and Textarea */
.input-styled,
.textarea-styled {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--primary);
    transition: all var(--transition);
}

[data-theme="dark"] .input-styled,
[data-theme="dark"] .textarea-styled {
    background-color: #1a2332;
    border-color: #2d3748;
    color: #f8fafb;
}

[data-theme="dark"] .input-styled::placeholder,
[data-theme="dark"] .textarea-styled::placeholder {
    color: #6b7280;
}

.input-styled:focus,
.textarea-styled:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.1);
    outline: none;
}

[data-theme="dark"] .input-styled:focus,
[data-theme="dark"] .textarea-styled:focus {
    background-color: #0f1724;
    box-shadow: 0 0 0 3px rgba(31, 182, 255, 0.2);
}

.textarea-styled {
    resize: vertical;
    min-height: 100px;
}

.small-muted {
    color: var(--text-secondary);
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
}

[data-theme="dark"] .small-muted {
    color: #9ca3af;
}
