/* ============================================
   LOG 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 pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
}

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

/* Header */

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

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

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

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

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


/* Refresh Section */
.refresh-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    animation: slideUp 0.65s ease-out;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    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-refresh {
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    color: white;
}

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

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

/* Button Refreshing State */
.btn-refreshing {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.8 !important;
}

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

/* Log Viewer */
.log-viewer {
    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;
}

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

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

.viewer-title {
    flex: 1;
}

.viewer-info {
    font-size: 13px;
    opacity: 0.8;
}

.viewer-content {
    padding: 0;
}

/* Log Textarea */
.log-textarea {
    width: 100%;
    height: 600px;
    background: #000;
    border: none;
    border-radius: 0 0 10px 10px;
    color: #00ff00;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    overflow-y: scroll;
}

.log-textarea:focus {
    outline: none;
}

/* Custom Scrollbar */
.log-textarea::-webkit-scrollbar {
    width: 12px;
}

.log-textarea::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0 0 10px 0;
}

.log-textarea::-webkit-scrollbar-thumb {
    background: #08dc6e;
    border-radius: 6px;
}

.log-textarea::-webkit-scrollbar-thumb:hover {
    background: #0aff7f;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
    animation: slideUp 0.75s ease-out;
}

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

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

.info-box code {
    background: rgba(8, 220, 110, 0.2);
    color: #08dc6e;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

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

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

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

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

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

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

    .log-textarea {
        height: 500px;
        font-size: 11px;
        padding: 15px;
    }

    .viewer-header {
        font-size: 14px;
        padding: 10px 15px;
    }

    .viewer-info {
        display: none;
    }
}

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

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

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

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

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

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

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

    .viewer-header {
        font-size: 13px;
        padding: 10px 15px;
    }

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

    .log-textarea {
        height: 400px;
        font-size: 10px;
        padding: 12px;
    }

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

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

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

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

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