/* ============================================
   HFPROP 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); }
}

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

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

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

.hfprop-title {
/*    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #00aee8;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
*/
    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(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;

}
.hfprop-title:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}
.hfprop-title .material-icons {
    font-size: 36px;
    color: #08dc6e;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    animation: slideUp 0.65s ease-out;
}

.status-badge.active {
    background: rgba(8, 220, 110, 0.2);
    border: 2px solid #08dc6e;
    color: #08dc6e;
}

.status-badge.inactive {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    color: #ffc107;
}

.status-badge .material-icons {
    font-size: 28px;
}

/* Console */
.hfprop-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.75s 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;
}

.section-question {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 174, 232, 0.5);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #00aee8;
    background: rgba(0, 174, 232, 0.2);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #00aee8;
    border-radius: 50%;
}

.radio-text {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    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: 15px;
    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, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-activate {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.btn-deactivate {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #1d2658;
}

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

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

/* Button Saving State */
.btn-saving {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.8 !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.8s ease-out;
}

/* Info/Feature/Tip/Warning Boxes */
.info-box,
.feature-box,
.tip-box,
.warning-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;
}

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

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

.warning-box {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
}

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

.feature-box .material-icons {
    font-size: 28px;
    color: #9c27b0;
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

.info-box p,
.feature-box p,
.tip-box p,
.warning-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,
.feature-box p:last-child,
.tip-box p:last-child,
.warning-box p:last-child {
    margin-bottom: 0;
}

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

.feature-box h3,
.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;
}

/* DTMF Code */
.dtmf-code {
    display: inline-block;
    background: linear-gradient(135deg, #08dc6e 0%, #06b85a 100%);
    color: #1d2658;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(8, 220, 110, 0.3);
}

/* 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) {
    .hfprop-container {
        padding: 15px;
        margin: 20px auto;
    }

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

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

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

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

    .status-badge {
        padding: 12px 20px;
        font-size: 14px;
    }

    .status-badge .material-icons {
        font-size: 24px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

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

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

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

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

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

    .status-badge {
        padding: 10px 15px;
        font-size: 13px;
    }

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

    .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;
    }

    .section-question {
        font-size: 14px;
    }

    .radio-group {
        gap: 20px;
    }

    .radio-custom {
        width: 20px;
        height: 20px;
    }

    .radio-label input[type="radio"]:checked + .radio-custom::after {
        width: 10px;
        height: 10px;
    }

    .radio-text {
        font-size: 14px;
    }

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

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

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

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

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

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

    .dtmf-code {
        font-size: 14px;
        padding: 3px 10px;
    }

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

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

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