/* Estilos Generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    background-image: url('https://pycflix.com/wp-content/uploads/2023/01/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor General */
.container {
    width: 100%;
    max-width: 700px;
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: center; /* Centrar texto y contenido */
}

/* Encabezado General */
.header {
    margin-bottom: 20px;
}

.header h1 {
    font-size: 26px;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

/* Formulario Estilos Generales */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="text"], input[type="password"], button {
    width: 100%;
    max-width: 400px; /* Ajuste del tamaño máximo */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

button:active {
    background-color: #1e7e34;
}

/* Estilos específicos para la página de inicio de sesión (login.php) */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-page .container {
    max-width: 400px; /* Ajuste específico para el ancho de login */
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Estilos específicos para la página de consulta de correos (consult.php) */
.consult-page .form-container,
.valid-emails {
    text-align: center; /* Asegura el centrado del texto */
}

.valid-emails h3 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 10px;
}

.valid-emails ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.valid-emails li {
    color: #555555;
}

/* Estilos específicos para la página principal (inbox.php) */
.main-page .action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.logout-button, .new-consultation-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
}

/* Botón de cerrar sesión */
.logout-button {
    background-color: #dc3545;
    color: white;
}

.logout-button:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.logout-button:active {
    background-color: #bd2130;
}

/* Botón de nueva consulta */
.new-consultation-button {
    background-color: #28a745;
    color: white;
}

.new-consultation-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.new-consultation-button:active {
    background-color: #1e7e34;
}

/* Estilos adicionales */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

ul li:last-child {
    border-bottom: none;
}

ul li:hover {
    background-color: #f8f9fa;
}

ul li a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    width: 100%;
}

ul li a:hover {
    text-decoration: underline;
}

.message-body {
    white-space: pre-line;
    border: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 5px;
    background-color: #f8f9fa;
    margin-top: 15px;
}

.container p {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}
/* Estilos específicos para la página principal (inbox.php) */
.main-page .action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px; /* Ajustar el margen superior para bajar los botones */
}

.logout-button, .new-consultation-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
}

/* Botón de cerrar sesión */
.logout-button {
    background-color: #dc3545;
    color: white;
}

.logout-button:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.logout-button:active {
    background-color: #bd2130;
}

/* Botón de nueva consulta */
.new-consultation-button {
    background-color: #28a745;
    color: white;
}

.new-consultation-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.new-consultation-button:active {
    background-color: #1e7e34;
}
.no-messages-page .container {
    text-align: center;
    margin-top: 50px;
}

.no-messages-page .header {
    font-size: 24px;
    color: #333;
}

.no-messages-page .message p {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
}

.no-messages-page .action-buttons {
    margin-top: 30px;
}

.no-messages-page .action-buttons a {
    margin: 0 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
}

