/* Disney Font Generator - Main Styles */
/* Updated with #0868b1 Color Scheme */

.dfg-magic-container {
    max-width: 1300px;
    width: 100%;
    background: white;
    border-radius: 3.5rem 3.5rem 2.8rem 2.8rem;
    box-shadow: 0 25px 45px -10px rgba(8, 104, 177, 0.3),  /* #0868b1 with opacity */
                0 10px 20px -5px rgba(8, 104, 177, 0.2),
                inset 0 2px 8px rgba(255, 255, 255, 0.9);
    padding: 2rem 2rem 2.5rem 2rem;
    border: 1px solid #0868b1;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.dfg-header-title {
    text-align: center;
    margin-bottom: 2rem;
}

.dfg-header-title h2 {
    font-size: 2.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0868b1, #2a7fc9, #4a9eff);  /* Blue gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(8, 104, 177, 0.3);
    margin-bottom: 0.3rem;
}

.dfg-header-title p {
    font-size: 1.2rem;
    color: white;
    background: #0868b1;  /* Solid blue background */
    display: inline-block;
    padding: 0.4rem 1.8rem;
    border-radius: 60px;
    box-shadow: inset 0 -2px 0 #2a7fc9, 0 4px 10px rgba(8, 104, 177, 0.3);
    font-weight: 500;
}

/* Preview Area */
.dfg-preview-area {
    background: white;
    border-radius: 3rem;
    padding: 2.8rem 1.8rem;
    margin-bottom: 2rem;
    border: 4px solid #0868b1;  /* Blue border */
    box-shadow: 0 15px 30px rgba(8, 104, 177, 0.2), 
                inset 0 0 25px rgba(8, 104, 177, 0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    word-break: break-word;
}

#dfg-livePreview {
    font-size: clamp(2rem, 12vw, 5.2rem);
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    color: #0868b1;  /* Blue text */
    transition: all 0.15s;
    max-width: 100%;
}

/* Input Row */
.dfg-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: #e6f0fa;  /* Light blue background */
    border-radius: 60px;
    padding: 0.9rem 1.8rem;
    margin-bottom: 2.2rem;
    align-items: center;
    border: 2px solid #0868b1;  /* Blue border */
}

.dfg-input-row label {
    font-size: 1.3rem;
    color: #0868b1;  /* Blue text */
    font-weight: 500;
}

#dfg-textInput {
    flex: 1 1 280px;
    background: white;
    border: 2px solid #0868b1;  /* Blue border */
    border-radius: 50px;
    padding: 0.9rem 1.5rem;
    font-size: 1.3rem;
    outline: none;
    color: #0868b1;  /* Blue text */
    transition: 0.1s;
}

#dfg-textInput:focus {
    border-color: #2a7fc9;
    box-shadow: 0 0 0 4px rgba(8, 104, 177, 0.2);
}

#dfg-textInput::placeholder {
    color: #a0c4e8;  /* Light blue placeholder */
}

.dfg-char-counter {
    background: #0868b1;  /* Blue background */
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    color: white;  /* White text */
}

/* Controls Grid */
.dfg-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dfg-control-card {
    background: #f5f9ff;  /* Very light blue background */
    border-radius: 2rem;
    padding: 1.4rem 1.5rem;
    border: 2px solid #0868b1;  /* Blue border */
    box-shadow: 0 10px 15px rgba(8, 104, 177, 0.1), 
                inset 0 0 0 1px white;
}

.dfg-control-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: #0868b1;  /* Blue text */
    margin-bottom: 1.2rem;
    letter-spacing: -0.2px;
    border-bottom: 2px dotted #0868b1;  /* Blue dotted line */
    padding-bottom: 0.5rem;
}

/* Font Selector */
.dfg-font-selector {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 40px;
    border: 2px solid #0868b1;  /* Blue border */
    background: white;
    font-size: 1.1rem;
    color: #0868b1;  /* Blue text */
    font-weight: 500;
    cursor: pointer;
}

.dfg-font-selector option {
    color: #0868b1;
}

/* Color Picker */
.dfg-color-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.5rem;
}

.dfg-color-preset {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #0868b1;  /* Blue ring */
    cursor: pointer;
    transition: 0.1s;
}

.dfg-color-preset:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px #0868b1;
}

#dfg-customColor {
    width: 50px;
    height: 45px;
    border: 2px solid #0868b1;  /* Blue border */
    border-radius: 30px;
    background: white;
    padding: 3px;
    cursor: pointer;
}

/* Sliders */
.dfg-slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.dfg-slider-group label {
    color: #0868b1;  /* Blue text */
    font-weight: 600;
}

.dfg-slider-group input[type=range] {
    width: 100%;
    height: 8px;
    background: #cde0ef;  /* Light blue track */
    border-radius: 20px;
    -webkit-appearance: none;
}

.dfg-slider-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #0868b1;  /* Blue thumb */
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(8, 104, 177, 0.5);
    cursor: pointer;
}

/* Effect Toggles */
.dfg-effect-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.8rem;
    margin: 0.5rem 0;
}

.dfg-effect-toggles label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0868b1;  /* Blue text */
    font-weight: 500;
}

.dfg-effect-toggles input[type=checkbox] {
    width: 22px;
    height: 22px;
    accent-color: #0868b1;  /* Blue checkbox */
}

/* Icon Panel */
.dfg-icon-panel {
    background: #e6f0fa;  /* Light blue background */
    border-radius: 50px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 2rem;
    border: 2px solid #0868b1;  /* Blue border */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.5rem;
}

.dfg-icon-panel span {
    font-size: 1.2rem;
    color: #0868b1;  /* Blue text */
    font-weight: 500;
}

.dfg-icon-btn {
    background: white;
    border: 2px solid #0868b1;  /* Blue border */
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 0 4px 0 #0868b1;  /* Blue shadow */
}

.dfg-icon-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0868b1;
}

/* Templates */
.dfg-template-section {
    background: #e6f0fa;  /* Light blue background */
    border-radius: 60px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.8rem;
    border: 2px solid #0868b1;  /* Blue border */
}

.dfg-template-section span {
    font-size: 1.2rem;
    color: #0868b1;  /* Blue text */
    margin-right: 1rem;
}

.dfg-template-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.dfg-template-badge {
    background: white;
    border: 2px solid #0868b1;  /* Blue border */
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0868b1;  /* Blue text */
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 0 4px 0 #0868b1;  /* Blue shadow */
}

.dfg-template-badge:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0868b1;
}

/* Action Buttons */
.dfg-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin: 2rem 0 1rem;
}

.dfg-action-btn {
    background: white;
    border: 3px solid #0868b1;  /* Blue border */
    border-radius: 60px;
    padding: 0.9rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0868b1;  /* Blue text */
    box-shadow: 0 8px 0 #0868b1, 0 12px 20px rgba(8, 104, 177, 0.2);  /* Blue shadow */
    cursor: pointer;
    transition: 0.05s linear;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    outline: none;
}

.dfg-action-btn:active {
    transform: translateY(8px);
    box-shadow: 0 4px 0 #0868b1, 0 12px 20px rgba(8, 104, 177, 0.2);
}

.dfg-reset-btn {
    border-color: #0868b1;  /* Blue border */
    color: #0868b1;  /* Blue text */
    box-shadow: 0 8px 0 #2a7fc9;  /* Lighter blue shadow */
}

/* Footer */
.dfg-footer-note {
    text-align: center;
    color: #0868b1;  /* Blue text */
    font-size: 1rem;
    margin-top: 2rem;
}

/* Hidden */
.dfg-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dfg-magic-container {
        padding: 1.5rem;
    }
    
    .dfg-header-title h2 {
        font-size: 2.2rem;
    }
    
    .dfg-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dfg-action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dfg-controls-grid {
        grid-template-columns: 1fr;
    }
    
    .dfg-icon-panel {
        justify-content: center;
    }
}

/* Loading State */
.dfg-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.dfg-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #0868b1;  /* Blue border */
    border-top-color: transparent;
    border-radius: 50%;
    animation: dfg-spin 0.8s linear infinite;
}

@keyframes dfg-spin {
    to { transform: rotate(360deg); }
}

/* Additional Blue Theme Elements */

/* Scrollbar styling (optional) */
.dfg-magic-container::-webkit-scrollbar {
    width: 10px;
}

.dfg-magic-container::-webkit-scrollbar-track {
    background: #e6f0fa;
}

.dfg-magic-container::-webkit-scrollbar-thumb {
    background: #0868b1;
    border-radius: 5px;
}

/* Hover effects */
.dfg-font-selector:hover,
.dfg-icon-btn:hover,
.dfg-template-badge:hover,
.dfg-action-btn:hover {
    background: #e6f0fa;  /* Light blue on hover */
    transform: scale(1.02);
    transition: all 0.2s;
}

/* Focus states */
.dfg-font-selector:focus,
.dfg-icon-btn:focus,
.dfg-template-badge:focus,
.dfg-action-btn:focus {
    outline: 3px solid rgba(8, 104, 177, 0.3);
    outline-offset: 2px;
}