/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    text-align: center;
    margin: 0;
}

h1, h2, h3 {
    color: #333;
}

/* Estilos para la página de login */
.login-body {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-button {
    background-color: #6e48aa;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #5a3e8b;
}

.footer-text {
    margin-top: 15px;
    color: #777;
    font-size: 0.9em;
}

/* Estilos para la página pública */
.public-body {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.public-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.public-container h1 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.public-container h2 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.public-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-status {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: left;
}

.request-status p {
    margin: 3px 0;
    font-size: 0.9em;
}

.request-history {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.request-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    text-align: left;
}

.request-item p {
    margin: 3px 0;
    font-size: 0.9em;
}


.public-submit-button:hover {
    background-color: #e66b4d;
}

/* Estilos para el dashboard del DJ */
.dashboard-body {
    background: linear-gradient(135deg, #43cea2, #185a9d);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

.dashboard-container {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dashboard-container h1 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.dashboard-container h2 {
    color: #555;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.dashboard-container p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.dashboard-form textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    width: 100%;
    max-width: 300px;
}

.total-tips {
    background-color: #e7f3e7;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.total-tips h3 {
    color: #2e7d32;
    font-size: 1em;
    margin-bottom: 3px;
}

.total-tips p {
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
}

.action-form {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.action-form select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.action-button {
    background-color: #185a9d;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.action-button:hover {
    background-color: #144c7e;
}

.pagination {
    margin-top: 10px;
    text-align: center;
}

.pagination-link {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 3px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.pagination-link:hover {
    background-color: #ddd;
}

.pagination-link.active {
    background-color: #185a9d;
    color: white;
}

/* Estilos para el panel de administración */
.admin-body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Fondo gris claro para el panel de admin */
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para el menú de navegación superior */

/* Estilos de Formularios */
.dashboard-form {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: white; /* Fondo blanco para los campos */
    font-size: 14px;
}

.form-group input:focus {
    border-color: #6e48aa;
    outline: none;
}

.form-group input.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.submit-button {
    background-color: #1abc9c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
}

.submit-button:hover {
    background-color: #16a085;
}

.cancel-button {
    background-color: #ff6f61;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
    margin-top: 5px;
}

.cancel-button:hover {
    background-color: #d32f2f;
}

.custom-tip-container {
    margin-top: 5px;
}

.custom-tip-container label {
    font-size: 0.9em;
    color: #555;
}

.custom-tip-container input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    max-width: 150px;
    margin-top: 5px;
}

.profile-management {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.profile-management h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Estilos de Tablas */
.table-wrapper {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}

.status-attended {
    background-color: #ccffcc;
}

.status-pending {
    background-color: #fff3cd;
}

.status-rejected {
    background-color: #f8d7da;
}

.status-locked {
    color: #777;
    font-style: italic;
    font-size: 0.9em;
}

.low-tip {
    background-color: #f8d7da !important;
}

/* Estilos de Botones y Enlaces */
.refresh-container {
    text-align: right;
    margin-bottom: 10px;
}

.refresh-button {
    background-color: #7f8c8d;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.refresh-button:hover {
    background-color: #95a5a6;
}

.refresh-button.prominent {
    background-color: #1abc9c;
    padding: 10px 20px;
    font-size: 16px;
}

.refresh-button.prominent:hover {
    background-color: #16a085;
}

.action-link {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
}

.action-link.edit {
    background-color: #3498db;
    color: white;
}

.action-link.delete {
    background-color: #e74c3c;
    color: white;
}

.action-link:hover {
    opacity: 0.9;
}

.delete-link {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
}

.delete-link:hover {
    text-decoration: underline;
}

.logout-container {
    text-align: center;
    margin-top: 20px;
}

.logout-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}

.sort-button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.sort-button:hover {
    background-color: #45a049;
}

.copy-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #45a049;
}

/* Estilos de Mensajes */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.warning-message {
    background-color: #fff3cd;
    color: #856404;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.custom-message {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.payment-number {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
    display: inline-block;
    margin-right: 10px;
}

/* Media Queries para diseño responsive */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .form-group input,
    .form-group select {
        font-size: 12px;
    }

    .submit-button,
    .refresh-button.prominent {
        font-size: 14px;
        padding: 8px 16px;
    }

    table th,
    table td {
        font-size: 12px;
        padding: 8px;
    }

    .action-link {
        font-size: 12px;
        padding: 3px 6px;
    }

    .top-nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .top-nav ul li a {
        padding: 8px 12px;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 10px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-container h1 {
        font-size: 1.3em;
    }

    .dashboard-container h2 {
        font-size: 1.1em;
    }

    .dashboard-container p {
        font-size: 0.85em;
    }

    .total-tips {
        width: 100%;
        text-align: left;
    }

    .total-tips h3 {
        font-size: 0.9em;
    }

    .total-tips p {
        font-size: 1.1em;
    }

    .dashboard-form textarea {
        max-width: 100%;
    }

    .submit-button {
        padding: 8px;
        font-size: 0.9em;
    }

    .refresh-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .action-form {
        flex-direction: column;
        gap: 3px;
    }

    .action-form select, .action-button {
        width: 100%;
        font-size: 0.85em;
    }

    .pagination-link {
        padding: 5px 8px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    .form-group input,
    .form-group select {
        font-size: 10px;
    }

    .submit-button,
    .refresh-button.prominent {
        font-size: 12px;
        padding: 6px 12px;
    }

    table th,
    table td {
        font-size: 10px;
        padding: 6px;
    }

    .action-link {
        font-size: 10px;
        padding: 2px 4px;
    }
}
/* Estilos para el sidebar y el layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background-color: #34495e;
}

.sidebar ul li a.active {
    background-color: #1abc9c;
}

/* Estilo para los íconos en el sidebar */
.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    flex-grow: 1;
    background-color: #f4f4f4;
    padding-top: 40px;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }
}
/* Estilos para el contenedor de la URL pública */
.public-url {
    margin: 20px 0;
    text-align: center;
}

.url-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.url-container input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    width: 100%;
    max-width: 400px;
    background-color: #f9f9f9;
    cursor: text;
}

.url-container .copy-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.url-container .copy-button:hover {
    background-color: #45a049;
}