/* ================================================
   SA818/SA868 Configuration Panel Stylesheet
   Author: SP2ONG
   Style: Modern, Responsive, Animated
   ================================================ */

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

/* Header */
.sa818-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;
}

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

.sa818-title .material-icons {
    font-size: 36px;
    color: #08dc6e;
}
/*
.sa818-title:hover {
    border-color: #00aee8;
    box-shadow: 0 4px 15px rgba(0, 174, 232, 0.3);
    transform: translateY(-2px);
}
*/
.sa818-title .material-icons {
    font-size: 32px;
    color: #08dc6e;
}

/* === Console Output === */
.sa818-console {
    background: #1a1a1a;
    border: 2px solid #00aee8;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 174, 232, 0.2);
    animation: slideDown 0.4s ease-out;
}

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

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

.console-output {
    background: #000;
    padding: 15px 20px;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}

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

.console-output::-webkit-scrollbar {
    width: 8px;
}

.console-output::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.console-output::-webkit-scrollbar-thumb {
    background: #00aee8;
    border-radius: 4px;
}

.console-output::-webkit-scrollbar-thumb:hover {
    background: #08dc6e;
}

/* === Form Sections === */
.sa818-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(0, 174, 232, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
}

.sa818-section:hover {
    border-color: #00aee8;
    box-shadow: 0 6px 20px rgba(0, 174, 232, 0.25);
    transform: translateY(-3px);
}

.section-header {
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    color: white;
    padding: 15px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header .material-icons {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* === Form Elements === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.flex-grow {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #f3ead3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-text,
.input-select {
    padding: 10px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid rgba(0, 174, 232, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

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

.input-select {
    cursor: pointer;
    color: #ff8c00;
    font-weight: 700;
}

.input-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* === Buttons === */
.btn {
    padding: 12px 24px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

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

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

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
}

.btn-detect {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-detect:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
}

.btn-version {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-version:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #e68900 100%);
    color: white;
    min-height: 60px;
    line-height: 1.4;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb133 0%, #ff9800 100%);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* === Info Box === */
.sa818-info {
    background: linear-gradient(135deg, rgba(8, 220, 110, 0.1) 0%, rgba(0, 174, 232, 0.1) 100%);
    border: 2px solid #08dc6e;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    animation: slideUp 0.6s ease-out;
}

.info-header {
    background: linear-gradient(135deg, #08dc6e 0%, #06b85a 100%);
    color: white;
    padding: 12px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.info-content {
    padding: 20px 25px;
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.info-content p {
    margin: 12px 0;
}

.info-content strong {
    color: #ffffff;
    font-weight: 600;
}

.info-link {
    color: #00aee8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.highlight-no {
    color: #00ffff;
    font-weight: 700;
}

.highlight-yes {
    color: #08dc6e;
    font-weight: 700;
}

/* === Error Display === */
.sa818-error {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(204, 0, 0, 0.1) 100%);
    border: 2px solid #ff4444;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
    animation: slideDown 0.5s ease-out;
}

.error-icon {
    margin-bottom: 20px;
}

.error-icon .material-icons {
    font-size: 64px;
    color: #ff4444;
    animation: shake 0.5s ease-in-out;
}

.sa818-error h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 15px 0;
}

.sa818-error p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.6;
}

.error-path {
    color: #ffff00;
    font-weight: 700;
    font-size: 15px;
}

.install-command {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #08dc6e;
    border-radius: 6px;
    padding: 12px 20px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #08dc6e;
    font-weight: 700;
}

/* === Access Denied === */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.access-denied img {
    max-width: 300px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

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

/* === 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);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
    .sa818-container {
        padding: 10px;
    }
    
    .sa818-title {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
    }
    
    .sa818-title .material-icons {
        font-size: 28px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group.flex-grow {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .section-header {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .console-output pre {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .sa818-title {
        font-size: 16px;
    }
    
    .section-header {
        font-size: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .info-content {
        font-size: 12px;
        padding: 15px;
    }
    
    .btn {
        font-size: 11px;
        padding: 10px 16px;
    }
    
    .input-text,
    .input-select {
        font-size: 13px;
        padding: 8px 12px;
    }
}
