/* Dark theme styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1d20;
    --bs-body-color: #e9ecef;
    --bs-emphasis-color: #fff;
    --bs-secondary-color: #9ca3af;
}

[data-bs-theme="dark"] .navbar {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    border-color: #2d3238;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #212529;
    border-color: #2d3238;
    color: #e9ecef;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #212529;
    border-color: #2d3238;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: #2d3238;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2d3238;
    border-color: #373d44;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2d3238;
    border-color: #0d6efd;
    color: #e9ecef;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #212529;
    border-color: #2d3238;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e9ecef;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #2d3238;
    color: #fff;
}

[data-bs-theme="dark"] .btn {
    color: #e9ecef;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #495057;
    border-color: #495057;
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    background-color: #2d3238;
    border-color: #373d44;
    color: #e9ecef;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #373d44;
    border-color: #454d55;
    color: #fff;
}

[data-bs-theme="dark"] .text-dark {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] a.text-dark {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] a.text-dark:hover {
    color: #fff !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .border {
    border-color: #2d3238 !important;
}

[data-bs-theme="dark"] .footer {
    background-color: #212529;
    color: #e9ecef;
}

[data-bs-theme="dark"] .footer a {
    color: #e9ecef;
    text-decoration: none;
}

[data-bs-theme="dark"] .footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Fix media buttons in dark mode */
[data-bs-theme="dark"] .btn-outline-primary {
    color: #e9ecef !important;
    background-color: #2d3238 !important;
    border-color: #373d44 !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:active,
[data-bs-theme="dark"] .btn-outline-primary:focus {
    color: #fff !important;
    background-color: #373d44 !important;
    border-color: #454d55 !important;
}

[data-bs-theme="dark"] .btn-outline-primary i,
[data-bs-theme="dark"] .btn-outline-primary svg {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover i,
[data-bs-theme="dark"] .btn-outline-primary:hover svg {
    color: #fff !important;
}

/* Fix React button - make it COMPLETELY flat */
.reaction-trigger {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    font-size: 16px !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
    box-shadow: none !important;
}

.reaction-trigger:hover {
    transform: scale(1.1) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.reaction-trigger.active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Video and Image Button Styles */
[data-bs-theme="dark"] .video-btn:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .video-btn:active,
[data-bs-theme="dark"] .video-btn.active {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .btn-check:checked + .video-btn {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}
