/* /www/wwwroot/apsoporte.ddns.net/thai-rd/public/css/crear_reproduccion.css */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2D2A4A 20%, #002D62 40%, #FFFFFF 60%, #A51931 80%, #CE1126 100%);
    background-size: 200% 200%;
    animation: gradientBG 12s ease infinite;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    touch-action: manipulation; /* Mejora la interacción táctil */
    -webkit-overflow-scrolling: touch; /* Desplazamiento suave en iOS */
}

html {
    height: 100%;
    -webkit-tap-highlight-color: transparent; /* Elimina el resaltado al tocar en móviles */
}

@keyframes gradientBG {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #002D62;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-out forwards;
}

.splash-screen.hide {
    animation: fadeOut 0.5s ease-out forwards;
}

.splash-screen img {
    height: 100px;
}

.navbar {
    background: #1e3c72;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.navbar-brand {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar-brand img {
    height: 36px;
}

.content {
    flex: 1;
    padding: 4px;
    width: 100%;
    overflow-y: auto; /* Permitir desplazamiento vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 120px); /* Ajustar altura para navbar y bottom-nav */
    position: relative;
    z-index: 1;
    margin-top: 70px;
    margin-bottom: 60px; /* Espacio para la barra inferior */
    box-sizing: border-box;
}

.card-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card-container h3 {
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.reproduccion-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column; /* Ajustado para móviles */
    position: relative;
    z-index: 10;
    transition: transform 0.2s;
}

.reproduccion-card:hover {
    transform: translateY(-2px);
}

.reproduccion-card .data-container {
    flex: 1;
    padding-right: 0;
}

.reproduccion-card .data {
    font-size: 0.85rem;
    color: #333;
    margin: 3px 0;
    word-wrap: break-word;
}

.reproduccion-card .data span {
    font-weight: 600;
    color: #0056b3;
}

.reproduccion-card .actions {
    margin-top: 6px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: 100%;
}

.action-btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    flex: 1;
    transition: background-color 0.3s;
    min-width: 0;
}

.edit-btn {
    background-color: #003087;
    color: white;
}

.edit-btn:hover {
    background-color: #002D62;
}

.delete-btn {
    background-color: #A51931;
    color: white;
}

.delete-btn:hover {
    background-color: #CE1126;
}

.message {
    display: none;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1001;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.add-btn {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #218838;
}

.add-btn i {
    vertical-align: middle;
}

/* Estilos para la Barra de Navegación Inferior (bottom-nav) */
.bottom-nav {
    background: #1e3c72;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 4px 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    height: 60px;
    box-sizing: border-box;
}

.bottom-nav-item {
    color: #fff;
    font-size: 0.75rem;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%; /* 5 elementos, cada uno ocupa el 20% del ancho */
    text-align: center;
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-nav-item i.material-icons {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #CE1126;
}

.bottom-nav-item span {
    font-size: 0.65rem;
    line-height: 1.2; /* Mejora la legibilidad en textos largos */
    white-space: normal; /* Permite que el texto se divida en varias líneas */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    background: #1e3c72;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    padding: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30, 60, 114, 0.3);
}

.input-group .btn {
    background-color: #28a745;
    color: #fff;
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 8px 15px;
}

.input-group .btn:hover {
    background-color: #218838;
}

.modal-footer {
    border-top: none;
    padding: 15px;
}

.save-btn {
    background-color: #003087;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
}

.save-btn:hover {
    background-color: #002D62;
}

.cancel-btn {
    background-color: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.confirm-btn {
    background-color: #A51931;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
}

.confirm-btn:hover {
    background-color: #CE1126;
}

.save-fish-btn {
    background-color: #003087;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
}

.save-fish-btn:hover {
    background-color: #002D62;
}

.cancel-fish-btn {
    background-color: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
}

.cancel-fish-btn:hover {
    background-color: #5a6268;
}

/* Media Queries para Dispositivos Móviles */
@media (max-width: 768px) {
    .card-container {
        margin-top: 60px;
    }

    .reproduccion-card {
        padding: 6px;
    }

    .reproduccion-card .actions {
        gap: 4px;
    }

    .action-btn {
        padding: 8px;
        font-size: 0.75rem;
    }

    .message {
        font-size: 0.8rem;
        padding: 8px;
    }

    .navbar {
        padding: 6px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 32px;
    }

    .add-btn {
        top: 60px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .bottom-nav {
        height: 55px;
    }

    .bottom-nav-item {
        font-size: 0.7rem;
    }

    .bottom-nav-item i.material-icons {
        font-size: 1.4rem;
    }

    .bottom-nav-item span {
        font-size: 0.6rem;
    }

    .modal-body {
        padding: 10px;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 6px;
    }

    .modal-footer {
        padding: 10px;
    }

    .save-btn,
    .cancel-btn,
    .confirm-btn,
    .save-fish-btn,
    .cancel-fish-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .reproduccion-card .data {
        font-size: 0.8rem;
    }

    .action-btn {
        font-size: 0.7rem;
        padding: 6px;
    }

    .add-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .bottom-nav {
        height: 50px;
    }

    .bottom-nav-item {
        font-size: 0.65rem;
    }

    .bottom-nav-item i.material-icons {
        font-size: 1.3rem;
    }

    .bottom-nav-item span {
        font-size: 0.55rem;
    }
}

@media (max-width: 375px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 28px;
    }

    .card-container h3 {
        font-size: 1.3rem;
    }

    .reproduccion-card {
        padding: 5px;
    }

    .reproduccion-card .data {
        font-size: 0.75rem;
    }

    .action-btn {
        font-size: 0.65rem;
        padding: 5px;
    }

    .add-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .bottom-nav {
        height: 48px;
    }

    .bottom-nav-item {
        font-size: 0.6rem;
    }

    .bottom-nav-item i.material-icons {
        font-size: 1.2rem;
    }

    .bottom-nav-item span {
        font-size: 0.5rem;
    }
}

@media (max-width: 320px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 24px;
    }

    .card-container h3 {
        font-size: 1.2rem;
    }

    .reproduccion-card .data {
        font-size: 0.7rem;
    }

    .action-btn {
        font-size: 0.6rem;
        padding: 4px;
    }

    .add-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .bottom-nav {
        height: 46px;
    }

    .bottom-nav-item {
        font-size: 0.55rem;
    }

    .bottom-nav-item i.material-icons {
        font-size: 1.1rem;
    }

    .bottom-nav-item span {
        font-size: 0.45rem;
    }

    .message {
        font-size: 0.7rem;
        padding: 6px;
    }
}