/* ============================================
   SVXLink Configuration Page Styles
   ============================================ */

/* Container */
.svxconf-container {
    max-width: 850px;
    margin: 20px auto;
    padding: 0 10px;
}

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

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 16px;
    margin-top: 20px;
}

/* Config Type Selector */
.config-type-selector {
    background: linear-gradient(135deg, #3f4c84 0%, #2d3560 100%);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.selector-title {
    color: cyan;
    font-family: 'Oswald', sans-serif;
    font-size: 14pt;
    font-weight: 500;
    margin: 0 0 20px 0;
    text-align: center;
}

.selector-content {
    text-align: center;
}

.config-select {
    width: 100%;
    max-width: 500px;
    height: 35px;
    padding: 5px 10px;
    margin: 10px 0;
    color: brown;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #f3ead3;
}

.selector-note {
    color: #f3ead3;
    font-size: 11pt;
    font-weight: 500;
    margin: 15px 0;
}

.selector-note strong {
    color: #08dc6e;
}

.btn-config-save {
    height: 35px;
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-config-save:hover {
    background: linear-gradient(135deg, #D32F2F 0%, #C62828 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.selector-warning {
    color: white;
    font-size: 11pt;
    font-weight: 500;
    margin-top: 15px;
}

/* Main Config Section */
.config-legend {
    color: yellow;
    font-family: 'Oswald', sans-serif;
    font-size: 12pt;
    font-weight: 500;
}

.main-title {
    color: #00aee8;
    font: bold 18pt Arial, sans-serif;
    text-shadow: 0.25px 0.25px gray;
    text-align: center;
    margin: 20px 0;
}

/* Info Section */
.info-section {
    margin-bottom: 25px;
}

.info-header {
    background-color: #333;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.info-textarea {
    width: 100%;
    background-color: black;
    border: 1px solid #333;
    border-top: none;
    color: cyan;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    resize: vertical;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

/* Config Form */
.config-form {
    background: #232d69;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.form-header {
    background: #333;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-header code {
    color: #08dc6e;
    font-family: 'Courier New', monospace;
}

/* Form Sections */
.form-section {
    background: #1e3c72;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-section h3 {
    color: #00aee8;
    font-size: 14pt;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 174, 232, 0.3);
}

.protocol-section {
    border: 2px solid rgba(8, 220, 110, 0.3);
    background: rgba(8, 220, 110, 0.05);
}

/* Form Rows */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    color: #08dc6e;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 174, 232, 0.3);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.input-text:hover,
.input-select:hover {
    border-color: #08dc6e;
    background: rgba(0, 0, 0, 0.7);
}


.form-row input:focus {
    outline: none;
    border-color: #00aee8;
    box-shadow: 0 0 8px rgba(0, 174, 232, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.input-uppercase {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.input-wide {
    font-size: 13px;
}

/* Input with Unit */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-unit input {
    flex: 0 0 120px;
}

.input-with-unit span {
    color: #f3ead3;
    font-weight: bold;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f3ead3;
    font-weight: normal;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* Password Wrapper */
.password-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f3ead3;
    font-weight: normal;
    cursor: pointer;
}

.password-toggle input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Field Notes */
.field-note {
    color: #bbb;
    font-size: 12px;
    font-style: italic;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.field-note a {
    color: #ffff00;
    text-decoration: none;
    font-weight: bold;
}

.field-note a:hover {
    text-decoration: underline;
}

.field-note strong {
    color: #08dc6e;
}

.field-note code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: cyan;
}

/* Cert Link */
.cert-link {
    margin: 15px 0;
    text-align: center;
}

.cert-link a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 174, 232, 0.2);
    border: 2px solid rgba(0, 174, 232, 0.5);
    border-radius: 5px;
    color: #00aee8;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cert-link a:hover {
    background: rgba(0, 174, 232, 0.3);
    border-color: #00aee8;
    transform: translateY(-2px);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin: 30px 0 20px;
}

.btn-save-config {
    height: 45px;
    width: 100%;
    max-width: 300px;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-config:hover {
    background: linear-gradient(135deg, #D32F2F 0%, #C62828 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.reminder-text {
    text-align: center;
    color: white;
    font-size: 12pt;
    font-weight: bold;
    margin-top: 20px;
}

.reminder-text a {
    color: yellow;
    text-decoration: none;
}

.reminder-text a:hover {
    text-decoration: underline;
}

/* Sound Cards Info */
.sound-cards-info,
.sound-cards-warning {
    background: rgba(255, 255, 221, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 10px;
    color: black;
}

.sound-cards-warning {
    background: #f3ead3;
    border: 2px solid #F44336;
    text-align: center;
}

.sound-cards-warning h3 {
    color: #F44336;
    margin-top: 0;
}

.sound-cards-info h3 {
    color: #000;
    margin-top: 0;
    font-size: 14pt;
}

.sound-cards-list {
    background: #000;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.sound-cards-info code.highlight {
    background: rgba(0, 174, 232, 0.2);
    color: #0288D1;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.auto-restart-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 174, 232, 0.1);
    border-left: 4px solid #00aee8;
    border-radius: 3px;
}

/* Full Edit Link */
.full-edit-link {
    text-align: center;
    margin: 25px 0;
}

.btn-full-edit {
    display: inline-block;
    height: 45px;
    width: 100%;
    max-width: 300px;
    line-height: 45px;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-full-edit:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .svxconf-container {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .config-type-selector {
        padding: 20px 15px;
    }
    
    .selector-title {
        font-size: 13pt;
    }
    
    .config-select {
        font-size: 13px;
    }
    
    .main-title {
        font-size: 16pt;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-section h3 {
        font-size: 13pt;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .input-with-unit {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-with-unit input {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .sound-cards-info,
    .sound-cards-warning {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .selector-title {
        font-size: 12pt;
    }
    
    .main-title {
        font-size: 14pt;
    }
    
    .btn-config-save,
    .btn-save-config,
    .btn-full-edit {
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }
    
    .form-section h3 {
        font-size: 12pt;
    }
}

/* Print Styles */
@media print {
    .config-type-selector,
    .form-actions,
    .full-edit-link,
    .btn-config-save,
    .btn-save-config,
    .btn-full-edit {
        display: none;
    }
    
    .form-section {
        border: 1px solid #000;
    }
}
