/* ============================================
   ANYRADIO PAGE - CUSTOM STYLES
   SVXLink Dashboard by SP2ONG
   ============================================ */

/* 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 spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Container */
.anyradio-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-in;
}

/* Header */
.anyradio-header {
    background: linear-gradient(135deg, #1d2658 0%, #3f4c84 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

.anyradio-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #00aee8;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.anyradio-title .material-icons {
    font-size: 36px;
    color: #08dc6e;
}

.anyradio-subtitle {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

/* Console */
.anyradio-console {
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(8, 220, 110, 0.2);
    animation: slideUp 0.7s ease-out;
}

.console-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.console-output {
    background: #000;
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    min-height: 80px;
}

.console-output pre {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Config Section */
.config-section {
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(8, 220, 110, 0.2);
    animation: slideUp 0.8s ease-out;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #08dc6e 0%, #06b85a 100%);
    color: #1d2658;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.section-content {
    padding: 25px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.form-group label .material-icons {
    font-size: 20px;
    color: #00aee8;
}

/* Select Input */
.select-input {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 174, 232, 0.3);
    border-radius: 6px;
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-input:focus {
    outline: none;
    border-color: #00aee8;
    box-shadow: 0 0 0 3px rgba(0, 174, 232, 0.2);
}

.select-input option {
    background: #1d2658;
    color: #f3ead3;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(8, 220, 110, 0.4);
}

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

/* Button Saving State */
.btn-saving {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.8 !important;
    background: linear-gradient(135deg, #0088bb 0%, #006688 100%) !important;
    color: white !important;
}

.btn-saving .material-icons.spinning {
    animation: spinning 1s linear infinite;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUp 0.9s ease-out;
}

/* Info/Tip Boxes */
.info-box,
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
}

.info-box {
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
}

.tip-box {
    background: rgba(8, 220, 110, 0.15);
    border-left: 4px solid #08dc6e;
}

.tip-box.speaker {
    background: rgba(255, 152, 0, 0.15);
    border-left: 4px solid #ff9800;
}

.tip-box.flat {
    background: rgba(156, 39, 176, 0.15);
    border-left: 4px solid #9c27b0;
}

.info-box .material-icons {
    font-size: 28px;
    color: #2196f3;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-box .material-icons {
    font-size: 28px;
    color: #08dc6e;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-box.speaker .material-icons {
    color: #ff9800;
}

.tip-box.flat .material-icons {
    color: #9c27b0;
}

.info-box p,
.tip-box p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.info-box p:last-child,
.tip-box p:last-child {
    margin-bottom: 0;
}

.info-box strong,
.tip-box strong {
    color: #08dc6e;
    font-weight: 600;
}

.tip-box h3 {
    color: #00aee8;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

/* External Link */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #00aee8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #08dc6e;
    text-decoration: underline;
}

.external-link .material-icons {
    font-size: 16px;
}

/* Recommendation Box */
.recommendation {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 174, 232, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.param-name {
    color: #08dc6e;
    font-weight: 700;
}

.value-no {
    color: #ff6b35;
    font-weight: 700;
}

.value-yes {
    color: #00aee8;
    font-weight: 700;
}

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

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

/* Tablet */
@media screen and (max-width: 768px) {
    .anyradio-container {
        padding: 15px;
        margin: 20px auto;
    }

    .anyradio-header {
        padding: 25px 20px;
    }

    .anyradio-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .anyradio-title .material-icons {
        font-size: 32px;
    }

    .anyradio-subtitle {
        font-size: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .anyradio-container {
        padding: 10px;
        margin: 15px auto;
    }

    .anyradio-header {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .anyradio-title {
        font-size: 20px;
    }

    .anyradio-title .material-icons {
        font-size: 28px;
    }

    .anyradio-subtitle {
        font-size: 13px;
    }

    .console-header,
    .section-header {
        font-size: 14px;
        padding: 10px 15px;
    }

    .console-header .material-icons,
    .section-header .material-icons {
        font-size: 20px;
    }

    .console-output {
        padding: 12px 15px;
    }

    .console-output pre {
        font-size: 12px;
    }

    .section-content {
        padding: 15px;
    }

    .form-grid {
        gap: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .select-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

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

    .info-box,
    .tip-box {
        padding: 15px;
        gap: 12px;
    }

    .info-box .material-icons,
    .tip-box .material-icons {
        font-size: 24px;
    }

    .info-box p,
    .tip-box p {
        font-size: 13px;
    }

    .tip-box h3 {
        font-size: 15px;
    }

    .recommendation {
        padding: 12px;
        font-size: 12px;
    }

    .external-link .material-icons {
        font-size: 14px;
    }

    .access-denied img {
        max-width: 250px;
    }

    .access-denied-text {
        font-size: 16px;
    }
}