/* Base styling - matching your other pages */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Outer Card (Page as a Card) */
.page-card {
    position: relative;
    z-index: 1;
    background-color: rgba(4, 99, 250, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header Styling */
.header {
    background-color: #007acc;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

h1 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

/* Content styling */
.content {
    padding: 20px;
    width: 100%;
}

.esp32__webusb {
    margin-bottom: 30px;
}

.Estilo1 {
    font-size: 20px;
    color: #4db8ff;
    margin-bottom: 20px;
}

/* Button container */
.button-container {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Footer styling */
.footer-card {
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .footer-card a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }

        .footer-card a:hover {
            opacity: 0.8;
        }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #007acc;
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #005f99;
    }

/* Modal styling - matching filemanager.html */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

    .custom-modal.show {
        opacity: 1;
    }

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.5);
    color: #fff;
    border: 1px solid #007acc;
    font-family: 'Arial', sans-serif;
}

.modal-content2 {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.5);
    color: #fff;
    border: 1px solid #007acc;
    font-family: 'Arial', sans-serif;
    display: block;
}

.glow-link {
    text-decoration: none;
    text-align: left;
    padding-left: 20px
}

    .glow-link:hover {
        text-shadow: 0 0 10px #4e83e6, 0 0 20px #4e83e6, 0 0 30px #4e83e6;
    }

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 122, 204, 0.3);
    padding-bottom: 15px;
}

.modal-icon {
    font-size: 30px;
    margin-right: 15px;
    color: #4dff4d;
}

.modal-content h2 {
    margin: 0;
    color: #4dff4d;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #e0e0e0;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.modal-button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(to right, #007acc, #005f99);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .modal-button:hover {
        background: linear-gradient(to right, #005f99, #004d80);
        transform: translateY(-2px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }

    .modal-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.center {
    text-align: center;
}

.home-icon {
    color: #006CCC; /* SVG will inherit this via currentColor */
    display: flex;
    height: 24px;
    width: 100%;
    transition: all 0.2s ease;
    justify-content: center;
}

    .home-icon:hover {
        transform: scale(1.3);
        opacity: 0.8;
    }

    .home-icon svg {
        width: 100%;
        height: 100%;
    }

/* Responsive adjustments */
@media (max-width: 600px) {
    .page-card {
        width: 98%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .Estilo1 {
        font-size: 18px;
    }

    .modal-content {
        padding: 15px;
    }
}
