/* Team EVA — Dark gaming theme (EVA.gg branding) */

/* Bootstrap dark theme overrides */
[data-bs-theme="dark"] {
    --bs-primary: #4b11e2;
    --bs-primary-rgb: 75, 17, 226;
    --bs-link-color: #956dff;
    --bs-link-hover-color: #b794ff;
    --bs-body-bg: #12121b;
    --bs-body-color: #f3f0fc;
    --bs-border-color: #3f3f46;
}

.btn-primary {
    background-color: #4b11e2 !important;
    border-color: #4b11e2 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #956dff !important;
    border-color: #956dff !important;
}

.btn-primary:active,
.btn-primary:focus {
    background-color: #2e00a3 !important;
    border-color: #2e00a3 !important;
}

.btn-outline-primary {
    color: #956dff !important;
    border-color: #956dff !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #4b11e2 !important;
    border-color: #4b11e2 !important;
    color: #fff !important;
}

.btn-outline-primary:active,
.btn-outline-primary:focus {
    background-color: #2e00a3 !important;
    border-color: #2e00a3 !important;
    color: #fff !important;
}

.badge.bg-primary {
    background-color: #4b11e2 !important;
}

.border-primary {
    border-color: #4b11e2 !important;
}

body {
    background-color: #12121b;
    color: #f3f0fc;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(75, 17, 226, 0.3);
}

/* Planning grid */
.planning-cell {
    cursor: pointer;
    transition: background-color 0.15s ease;
    min-width: 80px;
    position: relative;
}

.planning-cell:hover {
    filter: brightness(1.2);
}

.planning-cell.is-loading {
    pointer-events: none;
}

.planning-cell.level-full {
    background-color: rgba(25, 135, 84, 0.3) !important;
}

.planning-cell.level-majority {
    background-color: rgba(255, 193, 7, 0.2) !important;
}

.planning-cell.level-few {
    background-color: rgba(220, 53, 69, 0.25) !important;
}

.planning-users {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2px;
}

.planning-users span {
    font-size: 0.6rem;
    line-height: 1.1;
    color: #a0a0b0;
}

.planning-session-link {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
    margin-top: 3px;
    line-height: 1.3;
}

/* Planning mobile view */
.planning-mobile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.planning-mobile-tabs::-webkit-scrollbar {
    display: none;
}

.planning-mobile-tabs .btn {
    min-width: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 2px;
}

.planning-mobile-slot {
    border-radius: 8px;
    min-height: 48px;
    margin-bottom: 6px;
    border: 1px solid rgba(63, 63, 70, 0.5);
}

.planning-mobile-slot:active {
    filter: brightness(1.2);
}

.planning-mobile-time {
    min-width: 48px;
    font-size: 0.95rem;
}

.planning-mobile-users {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 4px !important;
    justify-content: flex-end;
}

.planning-mobile-users span {
    font-size: 0.7rem;
}

.planning-mobile-slot i.bi-check-circle-fill,
.planning-mobile-slot i.bi-circle {
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* Accordion dark fix */
.accordion-button:not(.collapsed) {
    background-color: rgba(75, 17, 226, 0.15);
    color: #f3f0fc;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: none;
}

/* Video player */
video {
    max-height: 80vh;
    background-color: #000;
}

/* Form inputs dark styling */
.form-control,
.form-select {
    background-color: #1a1a2e;
    border-color: #3f3f46;
    color: #f3f0fc;
}

.form-control:focus,
.form-select:focus {
    background-color: #1a1a2e;
    border-color: #956dff;
    color: #f3f0fc;
    box-shadow: 0 0 0 0.25rem rgba(75, 17, 226, 0.25);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Avatar */
.avatar-navbar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Animated Strategy */
.animated-strategy-map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.375rem;
}

.animated-strategy-map-container img {
    width: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.animated-strategy-player-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #956dff;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    transition: box-shadow 0.15s ease;
    user-select: none;
}

.animated-strategy-player-marker:hover {
    box-shadow: 0 0 10px rgba(149, 109, 255, 0.5);
}

.animated-strategy-player-marker.is-view {
    cursor: default;
}

.animated-strategy-player-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

.animated-strategy-player-initials {
    font-size: 0.65rem;
    font-weight: bold;
    color: #f3f0fc;
    pointer-events: none;
}

.animated-strategy-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #3f3f46;
    background: #1a1a2e;
    color: #f3f0fc;
    font-size: 0.8rem;
    cursor: grab;
    user-select: none;
    transition: border-color 0.15s ease;
}

.animated-strategy-member-chip:hover {
    border-color: #956dff;
}

.animated-strategy-member-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.animated-strategy-member-chip .chip-initials {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4b11e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
}

.animated-strategy-remove-zone {
    border: 2px dashed #dc3545;
    border-radius: 0.375rem;
    padding: 12px;
    text-align: center;
    color: #dc3545;
    font-size: 0.85rem;
    transition: background-color 0.15s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-strategy-remove-zone.drag-over {
    background-color: rgba(220, 53, 69, 0.15);
}

.animated-strategy-step-tab {
    min-width: 40px;
}

.animated-strategy-step-tab.active {
    background-color: #4b11e2 !important;
    border-color: #4b11e2 !important;
}

/* Grenade markers */
.animated-strategy-grenade-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transform: translate(-50%, -50%);
    border: 2px solid #e85d2c;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    transition: box-shadow 0.15s ease;
    user-select: none;
    gap: 0;
}

.animated-strategy-grenade-marker:hover {
    box-shadow: 0 0 10px rgba(232, 93, 44, 0.5);
}

.animated-strategy-grenade-marker.is-view {
    cursor: default;
}

.grenade-type-classic {
    border-color: #e85d2c;
}

.grenade-type-classic:hover {
    box-shadow: 0 0 10px rgba(232, 93, 44, 0.5);
}

.grenade-type-sticky {
    border-color: #3b82f6;
}

.grenade-type-sticky:hover {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.grenade-type-sonar {
    border-color: #22c55e;
}

.grenade-type-sonar:hover {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.animated-strategy-grenade-label {
    font-size: 0.5rem;
    font-weight: bold;
    color: #f3f0fc;
    line-height: 1;
    pointer-events: none;
}

.animated-strategy-grenade-type-icon {
    font-size: 0.5rem;
    line-height: 1;
    pointer-events: none;
}

.animated-strategy-grenade-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e85d2c;
    background: #1a1a2e;
    color: #f3f0fc;
    font-size: 0.75rem;
    cursor: grab;
    user-select: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.animated-strategy-grenade-chip:hover {
    background-color: rgba(232, 93, 44, 0.15);
}

.animated-strategy-grenade-type-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a3e;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    gap: 4px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.animated-strategy-grenade-type-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #3f3f46;
}

.animated-strategy-grenade-type-btn {
    border: none;
    background: transparent;
    color: #f3f0fc;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.animated-strategy-grenade-type-btn:hover {
    background: rgba(149, 109, 255, 0.2);
}

.animated-strategy-grenade-type-btn.active {
    background: rgba(149, 109, 255, 0.3);
}

.animated-strategy-grenade-remove-btn {
    color: #ef4444;
    border-left: 1px solid #3f3f46;
    margin-left: 2px;
    padding-left: 10px;
}

.animated-strategy-grenade-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}

/* Legend */
.animated-strategy-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}

.animated-strategy-legend-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #956dff;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.animated-strategy-legend-marker img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.animated-strategy-legend-initials {
    font-size: 0.55rem;
    font-weight: bold;
    color: #f3f0fc;
}

.animated-strategy-legend-name {
    font-size: 0.85rem;
    color: #f3f0fc;
}

/* Shooting line markers */
.animated-strategy-shootingline-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    transition: box-shadow 0.15s ease;
    user-select: none;
}

.animated-strategy-shootingline-marker:hover {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.animated-strategy-shootingline-marker.is-view {
    cursor: default;
}

.animated-strategy-shootingline-label {
    font-size: 0.45rem;
    font-weight: bold;
    color: #f59e0b;
    line-height: 1;
    pointer-events: none;
}

.animated-strategy-shootingline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #f59e0b;
    background: #1a1a2e;
    color: #f3f0fc;
    font-size: 0.75rem;
    cursor: grab;
    user-select: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.animated-strategy-shootingline-chip:hover {
    background-color: rgba(245, 158, 11, 0.15);
}

/* Team editable badge */
.animated-strategy-team-badge {
    background-color: #956dff !important;
    color: #fff;
    font-size: 0.7rem;
    vertical-align: middle;
}

.animated-strategy-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}
