/* =============================================================
   WoW Bolivia — Shared module components + Armory
   ============================================================= */

/* -------------------------------------------------------------
   SHARED: Panel, Table, Select, Button, Toolbar
   ------------------------------------------------------------- */

/* Panel contenedor de módulo */
.wb-module-panel {
    background-color: rgba(5, 12, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(6px);
}

/* Tabla oscura del tema */
.wb-table {
    width: 100%;
    border-collapse: collapse;
    color: #d8e8f0;
    font-family: "Raleway", serif;
    font-size: 14px;
}

.wb-table thead tr {
    background-color: #071525;
    border-bottom: 2px solid #1a4a6a;
}

.wb-table thead th {
    color: #7ecfff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 16px;
    text-align: left;
}

.wb-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease;
}

.wb-table tbody tr:hover {
    background-color: rgba(2, 179, 234, 0.05);
}

.wb-table tbody td {
    padding: 12px 16px;
    color: #c0d4e0;
    vertical-align: middle;
}

.wb-table tbody a {
    color: #f4bf2a !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.wb-table tbody a:hover {
    color: #ffd700 !important;
    text-decoration: underline !important;
}

/* Celda vacía / sin datos */
.wb-table-empty {
    text-align: center;
    color: #4a6070;
    padding: 40px 0 !important;
    font-size: 14px;
}

.wb-table-empty-box {
    text-align: center;
    color: #4a6070;
    padding: 50px 20px;
    font-size: 14px;
    background-color: rgba(5, 12, 22, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* Select estilizado */
.wb-select {
    background-color: #071525;
    border: 1px solid #1a4a6a;
    color: #c0d4e0;
    font-family: "Raleway", serif;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237ecfff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.wb-select:focus { border-color: #f4bf2a; }
.wb-select option { background-color: #071525; }
.wb-select--sm { font-size: 12px; padding: 7px 30px 7px 10px; }

/* Input estilizado */
.wb-input {
    background-color: #071525;
    border: 1px solid #1a4a6a;
    color: #e0e8f0;
    font-family: "Raleway", serif;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s ease;
}
.wb-input:focus { border-color: #f4bf2a; }
.wb-input::placeholder { color: #4a6070; }

/* Botón primario (rojo/dorado del tema) */
.wb-btn-primary {
    background-color: #750404;
    color: #fbe530;
    border: 1px solid #d10002;
    border-radius: 5px;
    padding: 10px 22px;
    font-family: "Raleway", serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.wb-btn-primary:hover {
    background-color: #9c1010;
    box-shadow: 0 0 14px rgba(213, 0, 0, 0.3);
    color: #ffe060;
}

/* Botón outline (celeste del tema) */
.wb-btn-outline {
    background-color: transparent;
    color: #7ecfff;
    border: 1px solid #1a4a6a;
    border-radius: 5px;
    padding: 10px 22px;
    font-family: "Raleway", serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.wb-btn-outline:hover {
    background-color: rgba(2, 179, 234, 0.1);
    border-color: #7ecfff;
    color: #b0e8ff;
}

.wb-btn-sm { padding: 7px 14px; font-size: 12px; }

/* Toolbar de módulo */
.wb-module-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.wb-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wb-toolbar-icon { color: #7ecfff; font-size: 18px; }
.wb-toolbar-label {
    color: #7a90a0;
    font-size: 13px;
    white-space: nowrap;
}

/* DataTables overrides para wb-table */
.wb-module-panel .dataTables_wrapper .dataTables_filter label,
.wb-module-panel .dataTables_wrapper .dataTables_length label,
.wb-module-panel .dataTables_wrapper .dataTables_info {
    color: #7a90a0 !important;
    font-size: 13px;
}

.wb-module-panel .dataTables_wrapper .dataTables_filter input {
    background-color: #071525 !important;
    border: 1px solid #1a4a6a !important;
    color: #e0e8f0 !important;
    border-radius: 5px !important;
    padding: 6px 12px !important;
    margin-left: 8px !important;
    margin-bottom: 0 !important;
}

.wb-module-panel .dataTables_wrapper .dataTables_length select {
    background-color: #071525 !important;
    border: 1px solid #1a4a6a !important;
    color: #e0e8f0 !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
    margin: 0 6px !important;
}

/* DataTables Bootstrap 5 integration — pagination via .page-item/.page-link */
.wb-module-panel .dataTables_paginate .page-item .page-link {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #7a90a0 !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.wb-module-panel .dataTables_paginate .page-item.active .page-link {
    background-color: rgba(2, 179, 234, 0.2) !important;
    border-color: rgba(2, 179, 234, 0.5) !important;
    color: #02b3ea !important;
    font-weight: 700 !important;
}

.wb-module-panel .dataTables_paginate .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: rgba(2, 179, 234, 0.10) !important;
    border-color: rgba(2, 179, 234, 0.3) !important;
    color: #7ecfff !important;
}

.wb-module-panel .dataTables_paginate .page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #2d4050 !important;
}

.wb-module-panel .dataTables_wrapper .dataTables_top {
    margin-bottom: 16px;
}

/* -------------------------------------------------------------
   ARMORY: Barra de búsqueda
   ------------------------------------------------------------- */

.wb-armory-search {
    margin-bottom: 6px;
}

.wb-search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: rgba(5, 12, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 16px 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(6px);
}

.wb-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.wb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a6070;
    font-size: 15px;
    pointer-events: none;
}

.wb-search-input {
    background-color: #071525 !important;
    border: 1px solid #1a4a6a !important;
    color: #e0e8f0 !important;
    font-family: "Raleway", serif !important;
    font-size: 14px !important;
    padding: 10px 14px 10px 40px !important;
    border-radius: 5px !important;
    height: 44px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.wb-search-input:focus {
    border-color: #f4bf2a !important;
    box-shadow: none !important;
    background-color: #0c1a28 !important;
}

.wb-search-input::placeholder { color: #4a6070 !important; }

.wb-search-bar .wb-select { height: 44px; min-width: 140px; }
.wb-search-bar .wb-btn-primary { height: 44px; }
