@import url('./auth.css');
@import url('./profile.css');
/* Bootstrap CSS overwrites */

.btn-primary {
    background-color: #ff9d00;
    border-color: #ff9d00;
}

.btn-primary:hover {
    background-color: #ff7a00;
    border-color: #ff7a00;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: #ff7a00;
    border-color: #ff7a00;
    box-shadow: 0 0 0 0.25rem rgba(255, 157, 0, 0.5);
}

.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    background-color: #ff7a00;
    border-color: #ff7a00;
}

.btn-primary:active:hover,
.btn-primary.active:hover,
.show>.btn-primary.dropdown-toggle:hover {
    background-color: #ff7a00;
    border-color: #ff7a00;
}

.btn-primary:active:focus,
.btn-primary.active:focus,
.show>.btn-primary.dropdown-toggle:focus {
    background-color: #ff7a00;
    border-color: #ff7a00;
    box-shadow: 0 0 0 0.25rem rgba(255, 157, 0, 0.5);
}

.btn-link-primary {
    color: #ff9d00;
}

.btn-link-primary:hover {
    color: #ff7a00;
    border: none;
}

.btn-link-primary:focus,
.btn-link-primary.focus {
    color: #ff7a00;
    text-decoration: none;
    border: none;
}

.btn-link-primary:active,
.btn-link-primary.active,
.show>.btn-link-primary.dropdown-toggle {
    color: #ff7a00;
    border: none;
    text-decoration: none;
}

.btn-link-primary:active:hover,
.btn-link-primary.active:hover,
.show>.btn-link-primary.dropdown-toggle:hover {
    color: #ff7a00;
    border: none;
    text-decoration: none;
}

.btn-link-primary:active:focus,
.btn-link-primary.active:focus,
.show>.btn-link-primary.dropdown-toggle:focus {
    color: #ff7a00;
    border: none;
    text-decoration: none;
}

.btn-link-primary {
    color: #ff9d00;
    border: none;
    text-decoration: none;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-control:focus:not(.error):not(.success) {
    border-color: #ff9d00;
    box-shadow: 0 0 0 0.25rem rgba(255, 157, 0, 0.25);
}

.form-check-input:checked:not(.error):not(.success) {
    color: #ff9d00;
    font-weight: 600;
}

.form-check-input:checked:not(.error):not(.success) {
    color: #ffb733;
}

.form-check-input:focus:not(.error):not(.success) {
    border-color: #ff9d00;
    box-shadow: 0 0 0 0.25rem rgba(255, 157, 0, 0.25);
}

.form-check-input:checked:not(.error):not(.success) {
    background-color: #ff9d00;
    border-color: #ff9d00;
}

.form-check-input:disabled:not(.error):not(.success) {
    color: #cc7e00;
    opacity: 0.65;
}

/* FILTERS */

.filters {
    margin-top: 20px;
    display: block;
    gap: 15px;
    margin-left: auto;

    padding: 12px 6px;
    border-radius: 10px;

    border: 1px solid #ddd;
    width: fit-content;
}

.filters a:not(.active) {
    color: #595C5F;
    text-decoration: none;
    padding: 8px 5px;
    border-radius: 5px;
}

.filters a:not(.active):hover {
    background-color: #f0f0f0;
    color: #595C5F;
    text-decoration: none;
    padding: 8px 5px;
    border-radius: 5px;
}

.filters .active {
    background-color: #ff9d00;

    color: #fff;

    text-decoration: none;
    padding: 8px 5px;
    border-radius: 5px;
}

.filters .active:hover {
    background-color: #ff7a00;
    color: #fff;
    text-decoration: none;
    padding: 8px 5px;
    border-radius: 5px;
}

/* QUESTIONS */
.question-list {
    margin-top: 20px;
}

.question-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #777;
}

/* PAGINATION */
.pagination-nav {
    margin-top: 40px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0px;
    padding: 0;
}

.page-item .pagi-link {
    text-decoration: none;
    color: #000;
    border: 1px solid #ddd;
    background: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.2s;
}

.page-item:not(:first-child):not(:last-child) .pagi-link {
    color: #ff9d00;
    border-radius: 0;
}

.page-item:first-child .pagi-link {
    border-radius: 6px 0px 0px 6px;
}

.page-item:last-child .pagi-link {
    border-radius: 0px 6px 6px 0px;
    color: #fff;
    background: #ff9d00;
}

.page-item:not(:first-child):not(:last-child) .pagi-link:hover {
    background: #e8e8e8;
}

.page-item.disabled .pagi-link {
    opacity: 0.5;
    pointer-events: none;
}


a.text-decoration-none {
    color: #ffb733;
    text-decoration: none;
}

.tooltip-inner {
    max-width: 300px;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.badge.text-bg-primary {
    cursor: pointer;
}

.text-bg-warning {
    background-color: #ff9d00 !important;
    color: #fff !important;
}

.toast {
    position: fixed;
    right: 10px;
    top: 70px;

    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.5s ease, transform 0.5s ease;

    background-color: #000;

    z-index: 999999;
}

.toast-info {
    background-color: #007bff;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
    color: #000;
}

.dropdown-item:active {
    background-color: #ff9d00;
    color: #fff;
}

.profile-header {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}

.content-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.question-item,
.comment-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.question-item:last-child,
.comment-item:last-child {
    border-bottom: none;
}

.score-badge {
    background: #eff6ff;
    color: #ff9d00;
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .85rem;
    font-weight: 600;
}

.bio {
    white-space: pre-wrap;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.activity-date {
    font-size: .85rem;
    color: #6b7280;
}
.blockquote{
    border-left: 4px solid #ff9d00;
    padding-left: 1rem;
    color: #6b7280;
    font-style: italic;
    background-color: #f9fafb;
}
table {
  width: 100%;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
}
em {
    font-style: italic;
}

button[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

    .question-card,
.answer-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:24px;
}

.vote-btn{
    width:52px;
    height:52px;
    border-radius:50%;
    transition:.2s;
}

.vote-btn:hover{
    transform:scale(1.05);
}

.accepted-badge{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    background:#dcfce7;
    color:#166534;
    border-radius:999px;
    padding:.4rem .8rem;
    font-size:.85rem;
    font-weight:600;
}

.tag{
    background:#eff6ff;
    color:#1d4ed8;
    border:none;
    padding:6px 14px;
    border-radius:999px;
}

.user-mini{
    background:#f8fafc;
    border:1px solid var(--border);
    border-radius:12px;
    padding:12px;
}

.btn-outline-primary{
    color:#ff9d00;
    border:1px solid #ff9d00;
    background:none;
    transition:.2s;
}
.btn-outline-primary:hover{
    background:#ff9d00;
    color:#fff;
    border:1px solid #ff9d00;
}
.btn-outline-primary:focus{
    box-shadow:0 0 0 0.25rem rgba(255,157,0,.5);
}
.btn-outline-primary:active{
    background:#ff7a00;
    color:#fff;
    border:1px solid #ff7a00;
}
.btn-outline-primary:focus{
    background:#ff7a00;
    color:#fff;
    border:1px solid #ff7a00;
}