/* ============================================
   Sound/Audio Configuration - Custom Styles
   Author: SP2ONG
   File: /css/sound-custom.css
   ============================================ */

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spinning 1s linear infinite;
}

/* === MAIN CONTAINER === */
.sound-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    /* background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);*/
    background: transparent;
    /* border-radius: 15px;*/ 
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);*/
    animation: fadeIn 0.6s ease-in;
}

/* === HEADER === */
.sound-header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.7s ease-out;
}

.sound-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00aee8;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 174, 232, 0.1) 0%, rgba(8, 220, 110, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 174, 232, 0.3);
    transition: all 0.3s ease;
}

.sound-title:hover {
    border-color: #00aee8;
    box-shadow: 0 4px 15px rgba(0, 174, 232, 0.3);
    transform: translateY(-2px);
}

.sound-title .material-icons {
    font-size: 34px;
    color: #08dc6e;
    animation: pulse 2s ease-in-out infinite;
}

.sound-subtitle {
    font-size: 14px;
    color: #b0c4de;
    font-style: italic;
    margin: 15px 0;
}

/* === CONSOLE OUTPUT === */
.sound-console {
    background: #1a1a1a;
    border: 2px solid #08dc6e;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(8, 220, 110, 0.3);
    animation: slideUp 0.8s ease-out;
}

.console-header {
    background: linear-gradient(135deg, #08dc6e 0%, #06b559 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.console-header .material-icons {
    font-size: 24px;
}

.console-output {
    padding: 20px;
    background: #0a0a0a;
    max-height: 150px;
    overflow-y: auto;
}

.console-output pre {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #00ff88;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* === AUDIO GRID === */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* === SOUND SECTIONS === */
.sound-section {
/*    background: rgba(255, 255, 255, 0.05);*/
    border-radius: 12px;
    overflow: hidden;
    animation: slideUp 0.9s ease-out;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.sound-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.tx-section {
    border: 1px solid rgba(255, 152, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.tx-section:hover {
    border-color: rgba(255, 152, 0, 0.5);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.2);
}

.rx-section {
    border: 1px solid rgba(0, 174, 232, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.rx-section:hover {
    border-color: rgba(0, 174, 232, 0.5);
    box-shadow: 0 5px 20px rgba(0, 174, 232, 0.2);
}

.section-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid;
}
.tx-section .section-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
}

.rx-section .section-header {
    background: linear-gradient(135deg, rgba(0, 174, 232, 0.2) 0%, rgba(8, 220, 110, 0.2) 100%);
    color: #00aee8;
    border-color: rgba(0, 174, 232, 0.3);
}

.section-header .material-icons {
    font-size: 26px;
}

.section-content {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
}

.section-desc {
    color: #b0c4de;
    font-size: 13px;
    font-style: italic;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* === SLIDER GROUPS === */
.slider-group {
    margin-bottom: 25px;
}

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

.slider-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #f3ead3;
    margin-bottom: 10px;
}

.slider-label .material-icons {
    font-size: 20px;
    color: #08dc6e;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, #08dc6e 0%, #06b559 100%);
    cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.audio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(8, 220, 110, 0.5);
}

.audio-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.audio-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(8, 220, 110, 0.5);
}

.gain-slider {
    background: linear-gradient(to right, #ff4444 0%, #08dc6e 50%, #ffc107 100%);
}

.slider-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #08dc6e;
    min-width: 60px;
    text-align: right;
    text-shadow: 0 0 5px rgba(8, 220, 110, 0.5);
}

/* === AGC CONTROL === */
.agc-control {
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.agc-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #f3ead3;
}

.agc-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-text .material-icons {
    font-size: 20px;
    color: #ffc107;
}

.agc-status {
    color: #ffc107;
    font-style: italic;
}

.agc-note {
    margin: 10px 0 0 10px;
    font-size: 12px;
    color: #ffc107;
}

/* === BUTTONS === */
.form-actions {
    text-align: center;
    margin: 30px 0;
}

.btn {
    padding: 16px 40px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn .material-icons {
    font-size: 22px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-save {
    background: linear-gradient(135deg, #08dc6e 0%, #06b559 100%);
}

.btn-save:hover {
    background: linear-gradient(135deg, #0aff7f 0%, #08dc6e 100%);
}

.btn-saving {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.7 !important;
}

/* === INFO BOXES === */
.info-box,
.tip-box,
.warning-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid;
    animation: slideUp 1s ease-out;
}

.info-box {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196f3;
}

.tip-box {
    background: rgba(8, 220, 110, 0.1);
    border-color: #08dc6e;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.info-box .material-icons,
.tip-box .material-icons,
.warning-box .material-icons {
    font-size: 32px;
    flex-shrink: 0;
}

.info-box .material-icons {
    color: #2196f3;
}

.tip-box .material-icons {
    color: #08dc6e;
}

.warning-box .material-icons {
    color: #ffc107;
}

.info-box div,
.tip-box div,
.warning-box div {
    flex: 1;
}

.info-box h3,
.tip-box h3,
.warning-box h3,
.warning-box h4 {
    color: #00d4ff;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.tip-box h3 {
    color: #08dc6e;
}

.warning-box h3 {
    color: #ffc107;
}

.info-box p,
.tip-box p,
.warning-box p {
    margin: 0 0 10px 0;
    color: #f3ead3;
    line-height: 1.6;
}

.tip-box ul {
    margin: 10px 0 0 0;
    padding-left: 25px;
    color: #f3ead3;
}

.tip-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box code,
.tip-box code,
.warning-box code {
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #00ff88;
    border: 1px solid rgba(0, 174, 232, 0.3);
    font-weight: 600;
}

.sound-cards-list {
    background: rgba(255, 255, 221, 0.95);
    padding: 10px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    overflow-x: auto;
    margin: 10px 0;
    padding: 20px;
    color: black;
}

.info-box a,
.tip-box a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.info-box a:hover,
.tip-box a:hover {
    color: #00aee8;
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media screen and (max-width: 1024px) {
    .audio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile landscape */
@media screen and (max-width: 768px) {
    .sound-container {
        padding: 20px;
        margin: 10px;
    }
    
    .sound-title {
        font-size: 22px;
        padding: 15px;
    }
    
    .sound-title .material-icons {
        font-size: 28px;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    .sound-container {
        padding: 15px;
        margin: 5px;
        border-radius: 10px;
    }
    
    .sound-title {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .sound-title .material-icons {
        font-size: 24px;
    }
    
    .sound-subtitle {
        font-size: 12px;
    }
    
    .section-header {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .slider-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider-value {
        text-align: center;
    }
    
    .btn {
        width: 100%;
        padding: 14px 30px;
    }
    
    .info-box,
    .tip-box,
    .warning-box {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
}