
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Primary buttons (ثبت نام, پاک کردن تاریخچه) */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Outline buttons (ورود, خروج) */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Version badge */
.version-badge {
    background: linear-gradient(135deg, #fb6e9f, #a777e3);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}
.version-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.version-badge-new {
    background: linear-gradient(135deg, #fd6198 0%, #eb629f 35%, #d66cc5 65%, #bb8ff1 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.1), 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 15px rgba(251, 110, 159, 0.15);
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.version-badge-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}
.version-badge-new:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15), 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 20px rgba(251, 110, 159, 0.25);
}
.navbar-handler {
    background-color: white;
}

.btn-header {
    font-size: 15px !important;
    border-radius: 6px;
    font-weight: 400;
    white-space: nowrap;
    direction: rtl;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    text-decoration: none;
    display: flex;
    cursor: pointer;
    height: 38px !important;
    justify-content: center;   /* وسط افقی */
    align-items: center;       /* وسط عمودی */
    
}
.btn-color1 {
    background-color: rgba(255, 255, 255, 1.0) !important;
    color: #6c757d;
    padding: 4px 16px;
    
}

.btn-color2 {
    background-color: rgba(255, 255, 255, 1.0) !important;
    color: #6c757d;
    padding: 6px 16px;
    border: 2px solid #0d6efd;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.first-btn-fromright {
    margin-left: 3px;
}
.middle-btn {
    margin-right: 3px;
}

.btn-color1:hover {
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-color: rgba(0,0,0,0.15);
    color: #343a40;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    text-decoration: none;
}
.btn-color1:active {
    border: none;
}

.btn-color2:hover {
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-color: rgba(0,0,0,0.15);
    color: #343a40;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    text-decoration: none;
}
.btn-color2:active {
    border: none;
}

.parcham-logo {
    padding-right: 10px;
    margin-right: 2px;;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
/* Navbar brand (holds the version badge) */
.navbar-brand {
    display: flex;
    align-items: center;
}

/* Dark-mode toggle button */
.toggle-dark-mode {
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-dark-mode:hover {
    transform: scale(1.1);
}

/* Dark-mode variant for header */
.dark-mode .navbar {
    background-color: #1e1e1e !important;
}

/* Dark‐mode overrides for non-header elements */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}
.dark-mode .profile-dropdown,
.dark-mode .profile-dropdown * {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}
.dark-mode .question {
    background-color: #424242;
    color: #e0e0e0;
}
.dark-mode .answer {
    background-color: #424c48;
    color: #e0e0e0;
}
.dark-mode .card-footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
}
.dark-mode .send-button-custom {
    background-color: #393a3a !important;
    color: #e0e0e0;
}

.dark-mode .sidebar-container * {
    background-color: #393a3a !important;
    color: #e0e0e0;
}

.dark-mode .toggle-dark-mode:hover .bi-moon-fill {
    color: #d3ddfd;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Night mode - Sun icon (beautiful white) */
.dark-mode .toggle-dark-mode .bi-sun-fill {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.dark-mode .toggle-dark-mode:hover .bi-sun-fill {
    color: #fff8dc;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Remove button styling */
.toggle-dark-mode:focus {
    outline: none;
    box-shadow: none;
}

.toggle-dark-mode:active {
    transform: scale(0.95);
}


/* -------- profile-dropdown styles -------- */
.profile-dropdown .btn-light {
  background: #ffffff;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.profile-dropdown .btn-light:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  transform: translateY(-1px);
}

.profile-dropdown .dropdown-divider {
  margin: 0.5rem 0;
}

.profile-dropdown img {
  object-fit: cover;
}

/* Override the previous centering classes */
.link_pos {
    text-align: center;
}
.link_pos2 {
    text-align: center !important;      /* Force center instead of right */
}

.night-btn {
    color: inherit;
    border: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
