@import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
}

body {
    background: linear-gradient(235deg, #53514d, #0a0a0a, #e6e6e6);
    padding: 20px;
    animation: gradientAnimation 15s ease infinite;
    background-size: 300% 300%;
}

/* Animacion del Gradiente */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container-all {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    margin-top: 100px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
}

.ctn-form {
    width: 80%;
    padding: 40px;
    background: #ffffff;
}

.logo {
    width: 300px;
    display: block;
    margin: auto;
}

.title {
    text-align: center;
    margin-top: 20px;
    font-weight: 300;
    color: #7a7a7a;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 20px;
    font-weight: 300;
    color: #7a7a7a;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0);
    border: 0px;
    outline: 0px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    color: #E30F87;
    font-size: 16px;
}

input[type="submit"] {
    height: 50px;
    margin-top: 60px;
    color: white;
    background: linear-gradient(150deg, #6f6d6a, #232221);
    cursor: pointer;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
    width: 100%;
    font-weight: bold;
}

input[type="submit"]:hover {
    background: linear-gradient(90deg, #898386, #4a4342);
}

.text-footer {
    display: block;
    margin-top: 100px;
    text-align: center;
    color: #7a7a7a;
    font-weight: 300;
}

.text-footer a {
    color: #029EE1;
    font-weight: 500;
}

/* LADO DERECHO */

.ctn-text {
    width: 100%;
    background-image: url(../images/jmtrack4.png);
    background-position: center;
    background-size: cover;
    padding: 40px;
    position: relative;
}

.ctn-text2 {
    width: 100%;
    background-image: url(../images/jmtrack3.png);
    background-position: center;
    background-size: cover;
    padding: 40px;
    position: relative;
}

.capa {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(10deg, #ffffff, #786BF9);
    opacity: 0.2;
}

.title-description {
    position: relative;
    top: 80px;
    color: white;
    font-weight: 300;
    font-size: 1.5rem;
}

.text-description {
    position: relative;
    top: 110px;
    color: white;
    font-size: 1rem;
    font-weight: 300;
}

/* TEXTO DE ERROR */

.msg-error {
    color: red;
    display: block;
    margin-top: 10px;
}

/* BIENVENIDA */

.ctn-welcome {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 40px;
    margin: auto;
    margin-top: 100px;
    background: white;
    border-radius: 20px;
}

.logo-welcome {
    width: 200px;
    margin: 20px;
}

.title-welcome {
    font-weight: 400;
    font-size: 40px;
    margin-top: 20px;
}

.title-welcome b {
    color: #BF4222;
}

/* BOTONES DE ACCION */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 18px;
    color: white;
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
    width: 250px;
    font-weight: bold;
}

.btn:hover {
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    transform: scale(1.05);
}

.btn-danger {
    background: linear-gradient(150deg, #ff9702, #fda51e);
}

.btn-danger:hover {
    background: linear-gradient(90deg, #E30F87, #BF4222);
}

.close-sesion {
    width: 100%;
    max-width: 600px;
    margin: auto;
    display: block;
    padding: 20px;
    margin-top: 40px;
    background: linear-gradient(150deg, #7B6FF8, #A7A0FA);
    color: white;
    font-size: 20px;
    font-weight: 300;
}

.close-sesion:hover {
    background: linear-gradient(90deg, #E30F87, #BF4222);
}

/* RESPONSIVE */

@media screen and (max-width: 800px) {
    .ctn-text {
        display: none;
    }

    .ctn-form {
        margin: auto;
        width: 100%;
        background: white;
    }
}

@media screen and (max-width: 500px) {
    .title-welcome {
        font-weight: 400;
        font-size: 30px;
        margin-top: 20px;
    }
}

/* LAYOUT GENERAL */

.card {
  width: 100%;
  border-radius: 8px;
}

.table-responsive {
  overflow-x: auto;
}
.table-responsive table {
  width: 100%;
  min-width: 1200px;
}

/* =============================================
   REPORTES
   ============================================= */

.card-minimal {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  background: #fff;
}
.card-minimal .card-body {
  padding: 1.25rem;
}

/* Tabla compacta */
.table-minimal {
  font-size: 0.85rem;
}
.table-minimal th, .table-minimal td {
  vertical-align: middle;
  border-top: none;
  padding: 0.5rem 0.4rem;
}
.table-minimal thead {
  background: #f1f3f5;
}
.table-minimal thead th {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.table-minimal .col-nowrap {
  white-space: nowrap;
}
.table-minimal .col-origen-destino {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Iconos de accion */
.action-icons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.action-icon-btn {
  background: linear-gradient(150deg, #ff9702, #fda51e);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
.action-icon-btn:hover, .action-icon-btn:focus {
  background: linear-gradient(90deg, #E30F87, #BF4222);
  color: #fff;
  transform: scale(1.08);
  text-decoration: none;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

/* Responsive tabla reportes */
@media (max-width: 992px) {
  .table-minimal { font-size: 0.78rem; }
  .table-minimal th, .table-minimal td { padding: 0.35rem 0.3rem; }
  .table-minimal .col-origen-destino { max-width: 130px; }
  .action-icon-btn { width: 28px; height: 28px; min-width: 28px; font-size: 0.95rem; }
}
@media (max-width: 600px) {
  .section-title { font-size: 1rem; }
  .table-minimal { font-size: 0.72rem; }
  .table-minimal .col-origen-destino { max-width: 100px; }
  .action-icon-btn { width: 26px; height: 26px; min-width: 26px; font-size: 0.9rem; }
}

/* Loader overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loader-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 300px;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff9702;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-text {
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.loader-subtext {
  color: #666;
  font-size: 0.9rem;
}
.btn-generating {
  opacity: 0.6;
  pointer-events: none;
}

/* Filtros de busqueda */
.filters-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
}
.filters-container label {
  margin-top: 0;
  font-size: inherit;
  font-weight: 500;
  color: inherit;
}
.filter-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.9rem;
  width: 100%;
}
.filter-input:focus {
  border-color: #ff9702;
  box-shadow: 0 0 0 0.2rem rgba(255, 151, 2, 0.25);
  outline: none;
}
.clear-filters-btn {
  background: linear-gradient(150deg, #6c757d, #5a6268);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.clear-filters-btn:hover {
  background: linear-gradient(150deg, #5a6268, #495057);
  transform: translateY(-1px);
}
.filters-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
