body {
  font-family: "Roboto", sans-serif;
}

.buscador {
  margin-top: 1em;
  margin-bottom: 1em;
}

.pagination {
  margin-top: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  /* box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
  box-shadow: 0 3px 6px 0 rgb(0 0 0 / 4%), 0 6px 20px 0 rgb(0 0 0 / 4%);
  margin-top: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
}
/* estos estilos existen en styleform  start*/
.nav-q-c.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #495057;
    background-color: #ffffff;
    border-bottom: #2b65ab 3px solid;
}
.nav-link.active-opacity{
    color: rgb(125 139 142)!important;
    border-bottom: rgb(125 139 142)  3px solid!important;
}

.nav-q-c.nav-tabs .nav-link {
    color: #495057;
    margin-bottom: -1px;
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}
/* estos estilos existen en styleform end*/

.border-top-left-right-radius-0{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


.navbar {
  background-color: #2a528f;
}

li > a {
  color: white;
}

li > a:hover {
  color: #e0e0e0;
}

.navbar-toggler {
  border-color: white;
}

/* .text-danger {
  font-size: 25px;
} */
/* .text-warningForm {
    background: #dc3545;
    padding: 4px;
    color: #ffffff;
    font-size: 16px;
    border-radius: 7px;
    margin: 4px 0 0 0;
} */

#tipo {
  display: none;
}

.btn-chart {
  background-color: #2a528f;
  width: 100%;
}

.table-client tr {
  background-color: white;
}

.table-client tbody tr:first-child {
  background-color: #2a528f;
  color: white;
}

i {
  vertical-align: middle !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

th,
td {
  vertical-align: middle !important;
}

.btn-primary {
  background-color: #2a528f !important;
}

.img {
  width: 300px;
  height: 200px;
}

.navbar-toggler-icon {
  color: white;
}

.page-item.active .page-link {
  z-index: 1;
  color: white;
  background-color: #2a528f !important;
  border-color: #2a528f;
}

@media (max-width: 750px) {
  li > a {
    text-align: center;
  }
}

canvas {
  padding: 0;
  margin: auto;
  display: block !important;
}

.createmodal {
  color: #fff !important;
  background-color: #28a745;
  border-color: #28a745;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}
.createmodal:hover {
  color: #fff !important;
  background-color: #28a7469a;
  border-color: #28a746cd;
}

.bg-wifri-blue {
    background-color: #2a528f;
    border-color: #2a528f;
    color: #ffffff;
}





/* Nuveo */

.fw-bold {
    font-weight: 700 !important;
}



.g-3 > * {
    padding-right: calc(1rem * 0.5);
    padding-left: calc(1rem * 0.5);
    margin-top: 1rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

:root {
    --primary-color: #2a528f;
    --secondary-color: #5382ca;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-gray: #f8fafc;
    --border-color: #e5e7eb;
}

body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}




.page-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.stats-card {
    background: linear-gradient(135deg,  var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;

    box-shadow: 0 10px 25px rgb(81, 126, 194, 0.3);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.btn-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(81, 126, 194, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(81, 126, 194,0.4);
    color: white;
}


.card-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}


.form-control-modern {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table-modern {
    margin: 0;
}

.table-modern thead th {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 20px 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    border: none;
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    /*transform: scale(1.002);*/
}

.table-modern tbody td {
    padding: 18px 15px;
    border: none;
    vertical-align: middle;
}



.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-edit {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-view {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.btn-view:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
}

.btn-chart {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.btn-chart:hover {
    background: var(--warning-color);
    color: white;
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-delete:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

.type-icon {
    aspect-ratio: 1/1;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: .1rem;
    background: var(--primary-color);
    color: #fff;
}




@media (max-width: 768px) {
    .table-responsive {
        border-radius: 15px;
    }
}

.campaign-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}




.campaign-details h6 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.campaign-details small {
    color: #8f8f8f;
    font-size: 0.85rem;
}


/*-------------------------------------------*/

.btn-light {
    color: #212529 !important;
    background-color: #ffffff;
    border-color: #ced4da;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    outline: none !important;
}




/* Status and Priority */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}


.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.package-info {
    text-align: center;
}

.package-total {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.package-unlimited {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
}

.package-info small {
    font-size: 0.75rem;
    color: #9ca3af;
}


.timeline-info {
    min-width: 150px;
    line-height: 1.4;
}

.timeline-info div {
    font-size: 0.875rem;
    color: #1a1a1a;
    font-weight: 500;
}

.timeline-info small {
    font-size: 0.75rem;
    color: #6b7280;
}

.usage-display {
    min-width: 100px;
}

.usage-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.used-count {
    font-weight: 600;
    color: #059669;
}

.usage-separator {
    color: #d1d5db;
}

.total-count {
    font-weight: 600;
    color: #374151;
}

.total-unlimited {
    font-weight: 600;
    color: #6b7280;
}

.usage-bar {
    width: 100%;
    height: 3px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.usage-progress {
    height: 100%;
    background: #059669;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.usage-percent {
    font-size: 0.75rem;
    color: #6b7280;
}
.badge-light-gradient {
    color: #838588;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.button-group {
    flex-wrap: wrap;
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 5px 3px;
    gap: 5px;
    border: 1px solid #e2e8f0;
}

.chart-type-option {
    position: relative;
    cursor: pointer;
}

.chart-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chart-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.chart-icon {
    font-size: 14px;
    line-height: 1;
}

.chart-label {
    line-height: 1;
}

/* Estados hover */
.chart-type-option:hover .chart-button {
    background: rgba(42, 82, 143, 0.3);
    color:var(--primary-color);
}

/* Estado activo/seleccionado */
.chart-type-option input[type="radio"]:checked + .chart-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 54, 119, 0.4);
}

/* Efecto de clic */
.chart-button:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 480px) {
    .button-group {
        flex-wrap: wrap;
    }

    .chart-button {
        font-size: 12px;
        padding: 5px 10px;
        gap: 4px;
    }

    .chart-icon {
        font-size: 13px;
    }
}

/* Accesibilidad */
.chart-type-option:focus-within .chart-button {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Animación de entrada */
.chart-selector-container {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-modern.download {
    background: linear-gradient(135deg, #19794c, var(--success-color));
}

.btn-modern.download-pdf {
    background: linear-gradient(135deg,  #134e99, var(--secondary-color));
}


/* Estilos para el dropdown menu específico */
.dropdown-export .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 200px;
    overflow: hidden;
}

.dropdown-export .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-export .dropdown-item {
    padding: 12px 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #495057;
    font-weight: 500;
    border: none;
    background: none;
}

.dropdown-export .dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-export .dropdown-item:focus {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    color: #667eea;
    outline: none;
}

.dropdown-export .dropdown-item:active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

/* Estilos para los íconos específicos */
.dropdown-export .dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.dropdown-export .dropdown-item:hover i {
    transform: scale(1.1);
}

.dropdown-export .bi-filetype-xls {
    color: #28a745;
}

.dropdown-export .bi-filetype-csv {
    color: #dc3545;
}

/* Animación de entrada específica */
.dropdown-export .dropdown-menu {
    animation: fadeInDownExport 0.3s ease;
}

@keyframes fadeInDownExport {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
