/**
 * Poker Views - Shared Styles
 * Common styling for all poker backoffice views
 */

/* ========================================
   Badge Styling - BIGGER & BOLD
   ======================================== */
.badge,
span.badge,
a.badge,
.table .badge,
.card .badge,
td .badge {
    border-radius: 3px !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    padding: 0.3rem 0.5rem !important;
    letter-spacing: 0.3px;
    color: #fff !important;
    display: inline-block;
    line-height: 1;
    text-transform: uppercase;
}

.badge-primary, .badge.badge-primary,
span.badge-primary, span.badge.badge-primary,
td .badge-primary, .table .badge-primary {
    background: rgba(70, 120, 100, 0.45) !important;
    border: 1px solid rgba(70, 120, 100, 0.6) !important;
    color: #fff !important;
}

.badge-warning, .badge.badge-warning,
span.badge-warning, span.badge.badge-warning,
td .badge-warning, .table .badge-warning {
    background: rgba(200, 150, 80, 0.4) !important;
    border: 1px solid rgba(200, 150, 80, 0.5) !important;
    color: #fff !important;
}

.badge-success, .badge.badge-success,
span.badge-success, span.badge.badge-success,
td .badge-success, .table .badge-success {
    background: rgba(60, 100, 80, 0.5) !important;
    border: 1px solid rgba(60, 100, 80, 0.6) !important;
    color: #fff !important;
}

.badge-info, .badge.badge-info,
span.badge-info, span.badge.badge-info,
td .badge-info, .table .badge-info {
    background: rgba(70, 100, 140, 0.45) !important;
    border: 1px solid rgba(70, 100, 140, 0.55) !important;
    color: #fff !important;
}

.badge-danger, .badge.badge-danger,
span.badge-danger, span.badge.badge-danger,
td .badge-danger, .table .badge-danger {
    background: rgba(140, 70, 70, 0.45) !important;
    border: 1px solid rgba(140, 70, 70, 0.55) !important;
    color: #fff !important;
}

.badge-secondary, .badge.badge-secondary,
span.badge-secondary, span.badge.badge-secondary,
td .badge-secondary, .table .badge-secondary {
    background: rgba(100, 100, 110, 0.45) !important;
    border: 1px solid rgba(100, 100, 110, 0.55) !important;
    color: #fff !important;
}

/* Small badge variant for tooltips/compact areas */
.badge-sm, .badge.badge-sm {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.35rem !important;
}

/* ========================================
   Action Buttons (styled like badges)
   ======================================== */
.btn-mini,
.btn.btn-mini,
.btn-xs,
.btn.btn-xs,
a.btn.btn-mini,
a.btn.btn-xs,
.btn-group .btn-mini,
.btn-group .btn.btn-mini,
td .btn-mini,
td .btn.btn-mini,
.table .btn-mini,
.table .btn.btn-mini {
    border-radius: 3px !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    padding: 0.3rem 0.5rem !important;
    letter-spacing: 0.3px;
    color: #fff !important;
    border: 1px solid transparent !important;
    transition: all 0.2s;
    text-decoration: none !important;
}

.btn-primary.btn-mini,
.btn-primary.btn-xs,
.btn.btn-primary.btn-mini,
.btn.btn-primary.btn-xs,
a.btn.btn-primary.btn-mini,
td .btn-primary.btn-mini,
.table .btn-primary.btn-mini,
.btn-group .btn-primary.btn-mini {
    background: rgba(70, 100, 140, 0.5) !important;
    border-color: rgba(70, 100, 140, 0.6) !important;
    color: #fff !important;
}

.btn-primary.btn-mini:hover,
.btn-primary.btn-xs:hover,
a.btn.btn-primary.btn-mini:hover {
    background: rgba(70, 100, 140, 0.7) !important;
    border-color: rgba(70, 100, 140, 0.8) !important;
}

.btn-info.btn-mini,
.btn-info.btn-xs,
.btn.btn-info.btn-mini,
.btn.btn-info.btn-xs,
a.btn.btn-info.btn-mini,
td .btn-info.btn-mini,
.table .btn-info.btn-mini,
.btn-group .btn-info.btn-mini {
    background: rgba(70, 130, 150, 0.5) !important;
    border-color: rgba(70, 130, 150, 0.6) !important;
    color: #fff !important;
}

.btn-info.btn-mini:hover,
.btn-info.btn-xs:hover,
a.btn.btn-info.btn-mini:hover {
    background: rgba(70, 130, 150, 0.7) !important;
    border-color: rgba(70, 130, 150, 0.8) !important;
}

.btn-success.btn-mini,
.btn-success.btn-xs,
.btn.btn-success.btn-mini,
.btn.btn-success.btn-xs,
a.btn.btn-success.btn-mini,
td .btn-success.btn-mini,
.table .btn-success.btn-mini,
.btn-group .btn-success.btn-mini {
    background: rgba(60, 100, 80, 0.5) !important;
    border-color: rgba(60, 100, 80, 0.6) !important;
    color: #fff !important;
}

.btn-success.btn-mini:hover,
.btn-success.btn-xs:hover,
a.btn.btn-success.btn-mini:hover {
    background: rgba(60, 100, 80, 0.7) !important;
    border-color: rgba(60, 100, 80, 0.8) !important;
}

.btn-warning.btn-mini,
.btn-warning.btn-xs,
.btn.btn-warning.btn-mini,
.btn.btn-warning.btn-xs,
a.btn.btn-warning.btn-mini,
td .btn-warning.btn-mini,
.table .btn-warning.btn-mini,
.btn-group .btn-warning.btn-mini {
    background: rgba(200, 150, 80, 0.5) !important;
    border-color: rgba(200, 150, 80, 0.6) !important;
    color: #fff !important;
}

.btn-warning.btn-mini:hover,
.btn-warning.btn-xs:hover,
a.btn.btn-warning.btn-mini:hover {
    background: rgba(200, 150, 80, 0.7) !important;
    border-color: rgba(200, 150, 80, 0.8) !important;
}

.btn-danger.btn-mini,
.btn-danger.btn-xs,
.btn.btn-danger.btn-mini,
.btn.btn-danger.btn-xs,
a.btn.btn-danger.btn-mini,
td .btn-danger.btn-mini,
.table .btn-danger.btn-mini,
.btn-group .btn-danger.btn-mini {
    background: rgba(140, 70, 70, 0.5) !important;
    border-color: rgba(140, 70, 70, 0.6) !important;
    color: #fff !important;
}

.btn-danger.btn-mini:hover,
.btn-danger.btn-xs:hover,
a.btn.btn-danger.btn-mini:hover {
    background: rgba(140, 70, 70, 0.7) !important;
    border-color: rgba(140, 70, 70, 0.8) !important;
}

.btn-secondary.btn-mini,
.btn-secondary.btn-xs,
.btn.btn-secondary.btn-mini,
.btn.btn-secondary.btn-xs,
a.btn.btn-secondary.btn-mini,
td .btn-secondary.btn-mini,
.table .btn-secondary.btn-mini,
.btn-group .btn-secondary.btn-mini {
    background: rgba(100, 100, 110, 0.5) !important;
    border-color: rgba(100, 100, 110, 0.6) !important;
    color: #fff !important;
}

.btn-secondary.btn-mini:hover,
.btn-secondary.btn-xs:hover,
a.btn.btn-secondary.btn-mini:hover {
    background: rgba(100, 100, 110, 0.7) !important;
    border-color: rgba(100, 100, 110, 0.8) !important;
}

.btn-inverse.btn-mini,
.btn-inverse.btn-xs,
.btn.btn-inverse.btn-mini,
.btn.btn-inverse.btn-xs,
a.btn.btn-inverse.btn-mini,
td .btn-inverse.btn-mini,
.table .btn-inverse.btn-mini,
.btn-group .btn-inverse.btn-mini {
    background: rgba(50, 60, 70, 0.6) !important;
    border-color: rgba(80, 90, 100, 0.6) !important;
    color: #fff !important;
}

.btn-inverse.btn-mini:hover,
.btn-inverse.btn-xs:hover,
a.btn.btn-inverse.btn-mini:hover {
    background: rgba(50, 60, 70, 0.8) !important;
    border-color: rgba(80, 90, 100, 0.8) !important;
}

/* ========================================
   Table Styling
   ======================================== */
.table {
    font-size: 0.8rem;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #9aa0ac;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
}

/* ========================================
   Form Controls - Unified Styling
   ======================================== */

/* Text inputs */
.form-control,
.ctrl-input,
.search-input,
.date-range-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0.35rem 0.6rem;
    color: #fff;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.form-control::placeholder,
.ctrl-input::placeholder,
.search-input::placeholder,
.date-range-input::placeholder {
    color: #555;
}

.form-control:focus,
.ctrl-input:focus,
.search-input:focus,
.date-range-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: none;
}

/* Select dropdowns */
.form-control[multiple],
.form-control[size],
select.form-control,
.ctrl-select,
.filter-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0.35rem 1.4rem 0.35rem 0.5rem;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23888' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 8px;
}

.form-control:focus,
.ctrl-select:focus,
.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.ctrl-select:hover,
.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.ctrl-select option,
.filter-select option,
select.form-control option {
    background: #1a2332;
    color: #fff;
}

/* Search input wrapper */
.search-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-input {
    width: 150px;
    padding-right: 1.8rem;
}

.search-reset {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 2px;
    font-size: 0.65rem;
    transition: color 0.2s;
    display: none;
}

.search-reset:hover {
    color: #ff8080;
}

.search-input-wrapper.has-value .search-reset {
    display: block;
}

/* ========================================
   Button Styling
   ======================================== */
.ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0.35rem 0.6rem;
    color: #9aa0ac;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
}

.ctrl-btn.primary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ctrl-btn.primary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ctrl-btn.reset:hover {
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff8080;
}

.ctrl-btn i {
    font-size: 0.65rem;
}

.btn-apply {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-apply:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #777;
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff8080;
    background: rgba(255, 100, 100, 0.05);
}

.export-csv-btn {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    color: #666;
}

.export-csv-btn:hover {
    color: #999;
}

/* ========================================
   Daterangepicker Dark Theme
   ======================================== */
.daterangepicker {
    background-color: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.daterangepicker:before {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.daterangepicker:after {
    border-bottom-color: #1a2332;
}

.daterangepicker.dropup:before {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.daterangepicker.dropup:after {
    border-top-color: #1a2332;
}

.daterangepicker .calendar-table {
    background-color: #1a2332;
    border-color: rgba(255, 255, 255, 0.1);
}

.daterangepicker td,
.daterangepicker th {
    color: #e0e0e0;
}

.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
    background-color: transparent;
    color: #555;
}

.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.daterangepicker td.in-range {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #4a7c9b;
    color: #fff;
}

.daterangepicker td.disabled,
.daterangepicker option.disabled {
    color: #555;
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
    background-color: #2a3a4a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.daterangepicker select.hourselect,
.daterangepicker select.minuteselect,
.daterangepicker select.secondselect,
.daterangepicker select.ampmselect {
    background-color: #2a3a4a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.daterangepicker .input-mini {
    background-color: #2a3a4a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.daterangepicker .input-mini.active {
    border-color: #4a7c9b;
}

.daterangepicker .calendar-time {
    color: #e0e0e0;
}

.daterangepicker .drp-buttons {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a2332;
}

.daterangepicker .drp-buttons .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
}

.daterangepicker .drp-buttons .btn-default {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9aa0ac;
}

.daterangepicker .drp-buttons .btn-default:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.daterangepicker .drp-buttons .btn-primary {
    background: rgba(74, 124, 155, 0.8);
    border: 1px solid rgba(74, 124, 155, 0.9);
    color: #fff;
}

.daterangepicker .drp-buttons .btn-primary:hover {
    background: rgba(74, 124, 155, 1);
}

.daterangepicker .drp-selected {
    color: #9aa0ac;
}

.daterangepicker .ranges li {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9aa0ac;
    font-size: 0.75rem;
}

.daterangepicker .ranges li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.daterangepicker .ranges li.active {
    background-color: #4a7c9b;
    border-color: #4a7c9b;
    color: #fff;
}

/* ========================================
   Utility Classes
   ======================================== */
.no-data-message {
    color: #666;
    font-size: 0.75rem;
    text-align: center;
    padding: 40px 10px;
    font-style: italic;
}

/* Card styling for poker views */
.poker-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 15px;
}

.poker-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8ec7ff;
    margin-bottom: 10px;
}
