﻿:root {
    --bg-color: #0c0c0c;
    --card-bg: #121212;
    --card-hover: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #737373;
    --accent-color: #0095f6;
    --accent-hover: #1877f2;
    --border-color: #262626;
    --input-bg: #262626;
    --danger-color: #ed4956;
    --success-color: #00d26a;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
}

.app-container {
    max-width: 935px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.app-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 935px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.user-controls a {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}


.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.search-container {
    position: relative;
    width: 268px;
}


.search-container input {
    width: 100%;
    background-color: #262626;
    border: none;
    border-radius: 8px;
    padding: 9px 16px 9px 36px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: background-color 0.2s ease;
}

.search-container input:focus {
    background-color: #363636;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 12px;
    pointer-events: none;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.15s ease;
}

.search-result-item:hover {
    background-color: var(--card-hover);
}

.search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.search-info {
    display: flex;
    flex-direction: column;
}

.search-name {
    font-weight: 600;
    font-size: 14px;
}

.search-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.my-profile-btn {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.my-profile-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

main {
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--text-muted);
}

.profile-card {
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 600px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 149, 246, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-primary);
    white-space: pre-wrap;
    margin-bottom: 15px;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    font-size: 16px;
}

.stat-item {
    display: flex;
    gap: 5px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-weight: 600;
}

.stat-label {
    color: var(--text-primary);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

textarea {
    width: 100%;
    max-width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px;
    font-size: 14px;
    resize: none;
    min-height: 80px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #1a1a1a;
}

textarea::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-counter {
    display: block;
    width: 100%;
    height: auto;
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: 10px;
    margin-top: 2px;
    margin-bottom: 10px;
}

.char-counter.warning {
    color: #ff9500;
}

.char-counter.error {
    color: var(--danger-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--card-hover);
    border-color: var(--text-secondary);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.custom-checkbox:hover:not(.disabled) {
    opacity: 0.8;
}

.custom-checkbox.disabled {
    cursor: default;
    color: var(--text-muted);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox.disabled .checkmark {
    display: none;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
    animation: checkPop 0.2s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.question-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    padding-top: 16px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.2s ease;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card:hover {
    border-color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.q-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.asker-info {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.asker-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.asker-avatar-small:hover {
    transform: scale(1.2);
}

.q-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.q-content {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.a-section {
    margin-top: 16px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.a-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.owner-avatar-tiny {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.a-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 8px;
}

.reply-btn-container {
    margin-top: 10px;
    text-align: right;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.reply-btn:hover {
    color: var(--accent-hover);
    transform: translateX(-2px);
}

.answer-form {
    margin-top: 10px;
    display: none;
    animation: slideDown 0.2s ease;
}

.answer-form.active {
    display: block;
}

.lock-icon {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
    text-align: right;
    opacity: 0.7;
}

.settings-group {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: none;
}

.settings-group.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.settings-label {
    font-size: 14px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #363636;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(18px);
}

.delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(19, 19, 19, 0.5);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 6px 8px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    color: var(--danger-color);
    opacity: 1;
    background: rgba(237, 73, 86, 0.15);
    transform: scale(1.1);
}

#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #1c1c1c;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
    opacity: 0;
    animation-fill-mode: forwards;
    border-left: 4px solid var(--accent-color);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, var(--card-bg) 25%, #1a1a1a 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-question {
    height: 120px;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

/* Question Filters */
.question-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
}

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(237, 73, 86, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
    font-size: 18px;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-modal-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-modal-btn.cancel {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.confirm-modal-btn.cancel:hover {
    background-color: var(--card-hover);
}

.confirm-modal-btn.confirm {
    background-color: var(--danger-color);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    background-color: #d63447;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 73, 86, 0.3);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-stats {
        justify-content: center;
        gap: 20px;
        font-size: 14px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
    }



}

.skeleton-question {
    height: 120px;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

/* Question Filters */
.question-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
}

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(237, 73, 86, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
    font-size: 18px;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-modal-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-modal-btn.cancel {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.confirm-modal-btn.cancel:hover {
    background-color: var(--card-hover);
}

.confirm-modal-btn.confirm {
    background-color: var(--danger-color);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    background-color: #d63447;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 73, 86, 0.3);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-stats {
        justify-content: center;
        gap: 20px;
        font-size: 14px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        display: block;
        max-width: calc(100% - 100px);
    }

    .search-container input {
        padding-left: 10px;
        padding-right: 10px;
    }

    .search-icon {
        display: none;
    }

    .profile-info h2 {
        display: flex;
        justify-content: center;
    }
}

/* Custom Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a var(--bg-color);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-color);
}

*::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 6px;
    border: 3px solid var(--bg-color);
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}


/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.status-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-open {
    background: rgba(0, 210, 106, 0.15);
    color: #00d26a;
    border-color: rgba(0, 210, 106, 0.3);
}

.status-closed {
    background: rgba(237, 73, 86, 0.15);
    color: #ed4956;
    border-color: rgba(237, 73, 86, 0.3);
}

/* Quick Access */
#quick-access-container {
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}

.section-title-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 4px;
}

#quick-access-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Firefox */
}

#quick-access-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 64px;
    flex-shrink: 0;
}

.quick-access-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    padding: 2px;
    transition: transform 0.2s, border-color 0.2s;
}

.quick-access-item:hover .quick-access-avatar {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.quick-access-name {
    margin-top: 6px;
    font-size: 11px;
}

.confirm-modal-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-modal-btn.cancel {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.confirm-modal-btn.cancel:hover {
    background-color: var(--card-hover);
}

.confirm-modal-btn.confirm {
    background-color: var(--danger-color);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    background-color: #d63447;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 73, 86, 0.3);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-stats {
        justify-content: center;
        gap: 20px;
        font-size: 14px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        display: block;
        max-width: calc(100% - 100px);
    }

    .search-container input {
        padding-left: 10px;
        padding-right: 10px;
    }

    .search-icon {
        display: none;
    }

    .profile-info h2 {
        display: flex;
        justify-content: center;
    }
}

/* Custom Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a var(--bg-color);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-color);
}

*::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 6px;
    border: 3px solid var(--bg-color);
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}


/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.status-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-open {
    background: rgba(0, 210, 106, 0.15);
    color: #00d26a;
    border-color: rgba(0, 210, 106, 0.3);
}

.status-closed {
    background: rgba(237, 73, 86, 0.15);
    color: #ed4956;
    border-color: rgba(237, 73, 86, 0.3);
}

/* Quick Access */
#quick-access-container {
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}

.section-title-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 4px;
}

#quick-access-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Firefox */
}

#quick-access-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 64px;
    flex-shrink: 0;
}

.quick-access-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    padding: 2px;
    transition: transform 0.2s, border-color 0.2s;
}

.quick-access-item:hover .quick-access-avatar {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.quick-access-name {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Duration Modal */
.duration-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-out;
}

.duration-modal {
    background: var(--card-bg);
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: scaleIn 0.2s ease-out;
}

.duration-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.duration-modal-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 210, 106, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00d26a;
    font-size: 18px;
}

.duration-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.duration-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.duration-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.duration-option:hover {
    border-color: var(--accent-color);
    background: rgba(0, 149, 246, 0.05);
    transform: translateY(-1px);
}

.duration-option.selected {
    border-color: var(--accent-color);
    background: rgba(0, 149, 246, 0.1);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.1);
}

.duration-option input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.duration-label {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.duration-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.duration-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.duration-modal-btn.cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.duration-modal-btn.cancel:hover {
    background: var(--card-hover);
    color: var(--text-primary);
}

.duration-modal-btn.confirm {
    background: var(--accent-color);
    color: white;
}

.duration-modal-btn.confirm:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 149, 246, 0.3);
}

/* Mobile Search Animation */
@media (max-width: 400px) {
    .header-content {
        position: relative;
    }

    .search-container {
        flex: 0 0 auto;
        margin-left: 10px;
        margin-right: 10px;
        transition: flex-grow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .user-controls {
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        transform: translateX(0);
        width: auto;
        flex-shrink: 0;
        overflow: hidden;
    }

    /* When search input is focused */
    .header-content:has(.search-container input:focus) .user-controls {
        opacity: 0;
        transform: translateX(20px);
        width: 0;
        margin: 0;
        pointer-events: none;
    }

    .header-content:has(.search-container input:focus) .search-container {
        flex-grow: 1;
        margin-right: 0;
    }

    .search-results-dropdown {
        position: fixed;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .search-container {
        width: 200px !important;
        max-width: 200px !important;
        transition: width 0.3s, max-width 0.3s !important;
    }

    .header-content:has(.search-container input:focus) .search-container {
        width: calc(100% - 35px) !important;
        max-width: calc(100% - 35px) !important;
    }
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    min-height: 300px;
}

.loading-spinner i,
.fa-spinner {
    font-size: 32px !important;
    color: rgb(48, 48, 48) !important;
}

.loading-spinner i.fa-spin {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(var(--fa-rotate-angle, 0));
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1) rotate(var(--fa-rotate-angle, 0));
    }
}

@media (max-width: 490px) {
    .user-controls .btn-primary {
        padding: 6px 10px !important;
    border-radius: 50% !important;
    }
    
    .user-controls .btn-primary::before {
        content: "\f007" !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        font-size: 16px !important;
    }
}

/* Custom Duration Input */
.custom-duration-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    animation: slideDown 0.2s ease;
}

.input-group-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    transition: border-color 0.2s ease;
}

.input-group-custom:focus-within {
    border-color: var(--accent-color);
}

.input-group-custom input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 14px;
    outline: none;
}

.input-group-custom .input-suffix {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-left: 4px;
}

.error-shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    border-color: var(--danger-color) !important;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}
/* Custom Duration Input - Date Picker Overrides */
.custom-duration-input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 12px;
    animation: slideDown 0.2s ease;
}

.input-group-custom {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.input-group-custom .custom-date-input {
    width: 100%;
    background-color: #262626;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    cursor: pointer;
}

.input-group-custom .custom-date-input:focus {
    border-color: var(--accent-color);
    background-color: #363636;
    box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.2);
}

.input-group-custom .custom-date-input:hover {
    border-color: var(--text-secondary);
}

/* Calendar icon color adjustment for dark mode */
.custom-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.custom-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

