.top-navigation {
    width: 100%;
    background: var(--primary-gradient);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(224, 48, 108, 0.2);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

/* ===== NAV LEFT (Location) ===== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

/* Location Selector */
.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.location-selector:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.location-selector i:first-child {
    font-size: 18px;
}

.location-selector i:last-child {
    font-size: 16px;
    margin-left: auto;
}

.location-selector:hover i:last-child {
    transform: rotate(180deg);
}

.location-text {
    flex: 1;
}

/* ===== NAV CENTER (Logo) ===== */
.nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== NAV RIGHT (Actions) ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

/* Notification Link */
.notification-link {
    font-size: 20px;
    color: white;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-link:hover {
    transform: scale(1.2);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: var(--instagram-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* User Profile Link */
.user-profile-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--secondary-gradient);
}

.user-profile-link:hover {
    transform: scale(1.1);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-selector-full {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgb(225, 248, 225);
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    width: 100%;
}

.location-selector-full:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-selector-full i:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

.location-selector-full i:last-child {
    font-size: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

.location-selector-full:hover i:last-child {
    transform: rotate(180deg);
}

.location-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* دکمه Location Toggle - شبیه Theme Toggle */
.location-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 20%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.location-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.location-toggle i {
    position: absolute;
    color: white;
    transition: all 0.3s ease;
}

/* آیکون map-pin (حالت عادی - نمایش داده شده) */
.location-toggle i.ri-map-pin-line {
    opacity: 1;
    transform: rotate(0deg);
}

/* آیکون eye-off (حالت مخفی) */
.location-toggle i.ri-eye-off-line {
    opacity: 0;
    transform: rotate(-180deg);
}

/* وقتی بخش لوکیشن مخفی است */
.location-toggle.hidden-state i.ri-map-pin-line {
    opacity: 0;
    transform: rotate(180deg);
}

.location-toggle.hidden-state i.ri-eye-off-line {
    opacity: 1;
    transform: rotate(0deg);
}

/* رنگ قرمز برای حالت hidden */
.location-toggle.hidden-state {
    background: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 87, 87, 0.3);
}

.location-toggle.hidden-state:hover {
    background: rgba(255, 87, 87, 0.3);
}

.location-toggle.hidden-state i {
    color: #ff5757;
}

/* Responsive */
@media (max-width: 768px) {
    .location-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Dark mode */
html[data-theme="dark"] .location-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .location-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .location-toggle.hidden-state {
    background: rgba(255, 87, 87, 0.15);
    border: 1px solid rgba(255, 87, 87, 0.25);
}

html[data-theme="dark"] .location-toggle.hidden-state:hover {
    background: rgba(255, 87, 87, 0.2);
}
.location-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    animation: fadeInBackdrop 0.3s ease-out;
    backdrop-filter: blur(2px);
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.location-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.location-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-body {
    background-color: var(--white);
}

/* Form Group Animation */
.modal-body .form-group {
    animation: fadeInUp 0.5s ease-out forwards;
}

.modal-body .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.modal-body .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-body .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select Enhancement */
.location-modal-content .form-select {
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.location-modal-content .form-select:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.location-modal-content .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.location-modal-content .form-select:disabled {
    background-color: #f5f5f5;
    opacity: 0.6;
}

/* Button Animation */
.location-modal-content .btn {
    transition: all 0.3s ease;
}

.location-modal-content .btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.location-modal-content .btn-primary:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.location-modal-content .btn-secondary:hover {
    transform: translateY(-2px);
    color: white;

}

/* Responsive */
@media (max-width: 576px) {
    .location-modal-content {
        max-width: 95vw;
    }

    .location-modal-container {
        padding: 10px;
    }
}

.modal-location-header {
    background: var(--primary-gradient);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px;
    color: white;
}

/* ==================== Hamburger Button ==================== */
.hamburger-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    backdrop-filter: blur(10px);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-btn span {
    width: 18px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

/* ==================== Theme Toggle ==================== */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding: 0;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08) rotate(20deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle i:nth-child(1) {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle i:nth-child(2) {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.theme-toggle.dark i:nth-child(1) {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.theme-toggle.dark i:nth-child(2) {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ==================== Notification ==================== */
.notification-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.notification-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.notification-link:active {
    transform: scale(0.95);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
}

/* ==================== User Profile ==================== */
.user-profile-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    padding: 0;
    background: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.user-profile-link:hover {
    transform: scale(1.12) rotateZ(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.user-profile-link:active {
    transform: scale(0.95);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Sidebar Overlay ==================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(0px);
}

.sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(4px);
}

/* ==================== Sidebar ==================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    z-index: 1999;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

/* ==================== Sidebar Header ==================== */
.sidebar-header {
    padding: 18px 20px;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    margin-top: 60px;
}

.sidebar-close {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    font-size: 24px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.close-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: rotate(90deg);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

body.dark-mode .close-btn {
    background: rgba(102, 126, 234, 0.2);
    color: #8fa3f0;
}

body.dark-mode .close-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* ==================== Sidebar Content ==================== */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

body.dark-mode .sidebar-content::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark-mode .sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ==================== Navigation Items ==================== */
.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 6px 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 12px;
    border-right: 3px solid transparent;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    padding-right: 20px;
    transform: translateX(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, transparent 100%);
    color: #667eea;
    font-weight: 600;
}

.nav-link.active::before {
    opacity: 1;
}

.nav-link.text-danger {
    color: #ff4757;
}

.nav-link.text-danger:hover {
    background: linear-gradient(90deg, rgba(255, 71, 87, 0.1) 0%, transparent 100%);
    color: #ff4757;
}

.nav-link.text-danger:hover::before {
    background: linear-gradient(180deg, #ff6b6b 0%, #ff4757 100%);
    opacity: 1;
}

body.dark-mode .nav-link {
    color: #bbb;
}

body.dark-mode .nav-link:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, transparent 100%);
    color: #8fa3f0;
}

body.dark-mode .nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.25) 0%, transparent 100%);
    color: #8fa3f0;
}

/* ==================== Icon Wrapper ==================== */
.icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    color: #667eea;
}

.nav-link:hover .icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.15) rotateY(10deg);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.nav-link.active .icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.nav-link.text-danger:hover .icon-wrapper {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.icon-current {
    position: absolute;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
}

.icon-active {
    position: absolute;
    opacity: 0;
    transform: scale(0) rotateZ(-180deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link.active .icon-current {
    opacity: 0;
    transform: scale(0) rotateZ(180deg);
}

.nav-link.active .icon-active {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
}

/* ==================== Link Content ==================== */
.link-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.title_link {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-badge {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .location-badge {
    color: #777;
}

/* ==================== Badges ==================== */
.xs-badge,
.badge-circle {
    background: var(--gradient-third);
    color: white;
    border-radius: 50%;
    min-width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.badge-circle {
    position: relative;
}

.doted_item {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ==================== Sidebar Footer ==================== */
.sidebar-footer {
    padding: 16px;
    border-top: 2px solid #e8e8f0;
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f2f5 100%);
    flex-shrink: 0;
}

body.dark-mode .sidebar-footer {
    background: linear-gradient(180deg, #1f1f2e 0%, #1a1a2e 100%);
    border-top-color: #2a2a3e;
}

.em_darkMode_menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.em_darkMode_menu .text {
    flex: 1;
}

.em_darkMode_menu h3 {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: 0.3px;
}

body.dark-mode .em_darkMode_menu h3 {
    color: #fff;
}

.em_darkMode_menu p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #999;
}

body.dark-mode .em_darkMode_menu p {
    color: #777;
}

/* ==================== Toggle Switch ==================== */
.switch_toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch_toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}


.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(102, 126, 234, 0.3);
}

input:checked + .slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        max-width: 320px;
    }
}

@media (min-width: 769px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        transform: translateX(100%);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    }

    .sidebar-overlay {
        display: none;
    }

    .close-btn {
        display: none;
    }

    .sidebar-header {
        margin-top: 0;
    }
}

/* ==================== Utility Classes ==================== */
.flex-column {
    display: flex;
    flex-direction: column;
}

/* ==================== Scrollbar Global ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #2a2a3e;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ==================== Animations ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== Additional Styles ==================== */
a {
    transition: all 0.3s ease;
}

button {
    transition: all 0.3s ease;
}

input {
    transition: all 0.3s ease;
}

/* ==================== Main Content Area ==================== */
main {
    margin-top: 60px;
    padding: 20px;
}

@media (min-width: 769px) {
    main {
        margin-right: 300px;
    }
}

.header-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid #f0f0f0;
    animation: slideDown 0.5s ease;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
}

.page-title .badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border: none;
    margin-left: 12px !important;
}

.header-section .text-muted {
    color: #999 !important;
    font-size: 14px;
    margin: 0;
}

.swiper.location-swiper {
    width: 100%;
    padding: 1.5rem 0;
}

.swiper-slide {
    width: auto !important;
}

.location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.location-item:hover {
    transform: translateY(-6px);
}

.location-circle {
    width: 60px;
    height: 60px;
    border-radius: 20%;
    background: transparent;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}

.location-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.location-item:hover .location-circle {
    transform: scale(1.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.location-item:hover .location-circle::before {
    opacity: 0.1;
}

.circle-icon {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.location-item:hover .circle-icon {
    transform: scale(1.2);
    animation: none;
}

.location-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin: 0;
    max-width: 80px;
    word-wrap: break-word;
    line-height: 1.2;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.location-item:hover .location-label {
    color: var(--primary-color);
    font-weight: 800;
}

@media (max-width: 768px) {
    .location-circle {
        width: 58px;
        height: 58px;
        border-width: 2.5px;
    }

    .circle-icon {
        font-size: 26px;
    }

    .location-label {
        font-size: 10px;
        max-width: 75px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .swiper.location-swiper {
        padding: 1rem 0;
    }

    .location-circle {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .circle-icon {
        font-size: 24px;
    }

    .location-label {
        font-size: 9px;
        max-width: 70px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .location-pagination .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
        margin: 0 2px;
    }

    .location-pagination .swiper-pagination-bullet-active {
        width: 16px;
    }
}

[data-theme="dark"] .location-label {
    color: #e0e0e0;
}

[data-theme="dark"] .location-pagination .swiper-pagination-bullet {
    background: #444;
}

.location-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.location-link:hover {
    transform: translateY(-6px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.location-link:hover .circle-icon {
    transform: scale(1.2);
    animation: none;
}

.location-label {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0;
    max-width: 80px;
    word-wrap: break-word;
    line-height: 1.2;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.location-link:hover .location-label {
    color: var(--primary-color);
    font-weight: 800;
}

.location-pagination {
    text-align: center;
    margin-top: 1rem;
}

.location-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s ease;
    opacity: 1;
}

.location-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.location-pagination .swiper-pagination-bullet:hover {
    background: #bbb;
}

@media (max-width: 768px) {
    .location-circle {
        width: 58px;
        height: 58px;
        border-width: 2.5px;
    }

    .circle-icon {
        font-size: 26px;
    }

    .location-label {
        font-size: 10px;
        max-width: 75px;
    }
}

@media (max-width: 480px) {
    .location-circle {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .circle-icon {
        font-size: 24px;
    }

    .location-label {
        font-size: 9px;
        max-width: 70px;
    }

    .location-pagination .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
        margin: 0 2px;
    }

    .location-pagination .swiper-pagination-bullet-active {
        width: 16px;
    }
}


/* Promotional Banner Container */
.promotional-banner-container {
    margin: 2rem 0 0 0;
    padding: 0 15px;
    width: 100%;
    position: relative;
}

/* Promotional Banner Swiper */
.promotional-banner-swiper {
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.promotional-banner-swiper .swiper-wrapper {
    height: 100%;
}

.promotional-banner-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.promotional-banner-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.promotional-banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Background Color for Non-Image Banners */
.banner-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay for Text */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    z-index: 2;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-description {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Promotional Banner Navigation */
.promotional-banner-swiper .swiper-pagination {
    bottom: 10px;
    z-index: 10;
    position: absolute;
}

.promotional-banner-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.promotional-banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* دکمه‌های ناوبری بنر */
.promotional-banner-swiper .banner-button-prev,
.promotional-banner-swiper .banner-button-next {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.promotional-banner-swiper .banner-button-prev:hover,
.promotional-banner-swiper .banner-button-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promotional-banner-swiper .banner-button-prev {
    right: 15px;
}

.promotional-banner-swiper .banner-button-next {
    left: 15px;
}

/* Officials Section */
.officials-section {
    padding: 1.5rem 0;
    background: var(--white);
    margin-top: 1rem;
}

.officials-container {
    max-width: 1600px;
}

.officials-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.officials-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.officials-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.officials-subtitle {
    font-size: 0.9rem;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.location-level-section {
    margin-bottom: 2.5rem;
}

.location-level-section:last-child {
    margin-bottom: 0;
}

.location-level-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.49) 0%, rgba(195, 207, 226, 0.37) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-level-title i {
    color: var(--primary-color);
}

/* Mayor Section */
.mayor-section {
    margin-bottom: 1rem;
}

.mayor-swiper {
    padding: 0 15px;
}

.mayor-swiper .swiper-slide {
    width: auto !important;
}

/* Representatives Section */
.representatives-section {
    margin-top: 1rem;
}

.representatives-swiper {
    padding: 0 15px;
}

.representatives-swiper .swiper-slide {
    width: auto !important;
}

/* Official Card */
.official-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0 8px;
    transition: all 0.3s ease;
}

.official-avatar-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.official-avatar-ring {
    width: 85px;
    height: 85px;
    border-radius: 20%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* Mayor Ring - Blue Purple Gradient */
.mayor-ring {
    background: var(--instagram-gradient);
    animation: pulse-mayor 2s ease-in-out infinite;
}

/* Representative Ring - Pink Red Gradient */
.representative-ring {
    background: var(--gradient-third);
    animation: pulse-rep 2s ease-in-out infinite;
}

@keyframes pulse-mayor {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    }
}

@keyframes pulse-rep {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(201, 251, 147, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(185, 251, 147, 0.5);
    }
}

.official-card:hover .official-avatar-ring {
    transform: scale(1.03);
}

.official-avatar {
    width: 76px;
    height: 76px;
    border-radius: 20%;
    border: 3px solid white;
    object-fit: cover;
    background-color: #f0f0f0;
}

.official-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mayor-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.representative-badge {
    background: var(--gradient-third);
}

.official-info {
    text-align: center;
    max-width: 90px;
}

.official-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.official-role {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.mayor-role {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: var(--primary);
}

.representative-role {
    background: linear-gradient(135deg, #f093fb15, #f5576c15);
    color: var(--bs-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .promotional-banner-swiper {
        height: 120px;
        border-radius: 12px;
    }

    .promotional-banner-swiper .swiper-slide {
        border-radius: 12px;
    }

    .banner-overlay {
        padding: 1rem;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .banner-description {
        font-size: 0.85rem;
    }

    .promotional-banner-swiper .banner-button-prev,
    .promotional-banner-swiper .banner-button-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .promotional-banner-swiper .banner-button-prev {
        right: 10px;
    }

    .promotional-banner-swiper .banner-button-next {
        left: 10px;
    }

    .officials-title {
        font-size: 1.1rem;
    }

    .official-avatar-ring {
        width: 70px;
        height: 70px;
    }

    .official-avatar {
        width: 62px;
        height: 62px;
    }

    .official-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .promotional-banner-swiper {
        height: 100px;
        border-radius: 10px;
    }

    .promotional-banner-swiper .swiper-slide {
        border-radius: 10px;
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-description {
        font-size: 0.75rem;
    }

    .official-avatar-ring {
        width: 65px;
        height: 65px;
    }

    .official-avatar {
        width: 57px;
        height: 57px;
    }
}

.content-section-title {
    color: var(--dark);
}

/* Content Section Title */
.content-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section-title i {
    color: var(--primary-color);
}

.close-sid {
    font-size: 18px;
    color: var(--dark);
}

.manage-content-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}


.page-header h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Tabs */
.content-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background-color: var(--white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    color: var(--dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tab-btn i {
    font-size: 20px;
}

.tab-count {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.tab-btn.active .tab-count {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Card */
.table-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary-color);
    font-size: 24px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
}

.content-table thead {
    background-color: #f8f9fa;
}

.content-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.content-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
    color: var(--dark);
    vertical-align: middle;
}

.content-table tbody tr {
    transition: all 0.3s ease;
}


/* Media Preview */
.media-preview-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.media-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.media-preview-wrapper:hover .media-preview {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    pointer-events: none;
}

.no-media {
    width: 60px;
    height: 60px;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 24px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-image {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-video {
    background-color: #fce7f3;
    color: #9f1239;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-expired,
.badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #e0e7ff;
    color: #3730a3;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--dark);
    font-weight: 500;
}

.stat-badge i {
    color: var(--primary-color);
}

/* Date Info */
.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.date-info i {
    color: var(--primary-color);
    margin-left: 5px;
}

.date-info small {
    color: #6b7280;
    font-size: 11px;
}

/* Post Info */
.post-title {
    font-weight: 600;
    color: var(--dark);
    max-width: 200px;
}

.post-content {
    color: #6b7280;
    font-size: 13px;
    max-width: 250px;
    line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.action-btn.view {
    background-color: #dbeafe;
    color: #1e40af;
}

.action-btn.view:hover {
    background-color: #3b82f6;
    color: white;
}

.action-btn.edit {
    background-color: #fef3c7;
    color: #92400e;
}

.action-btn.edit:hover {
    background-color: #f59e0b;
    color: white;
}

.action-btn.delete {
    background-color: #fee2e2;
    color: #991b1b;
}

.action-btn.delete:hover {
    background-color: #ef4444;
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-create {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* No Content */
.no-content {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.no-content p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Dark Mode */
[data-theme="dark"] .table-card,
[data-theme="dark"] .content-tabs {
    background-color: var(--white);
}

[data-theme="dark"] .content-table th,
[data-theme="dark"] .content-table td,
[data-theme="dark"] .card-header h3,
[data-theme="dark"] .post-title,
[data-theme="dark"] .no-content h3,
[data-theme="dark"] .tab-btn {
    color: var(--dark);
}

[data-theme="dark"] .content-table thead {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .content-table tbody tr:hover {
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .content-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px 15px;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .btn-create {
        width: 100%;
        justify-content: center;
    }

    .content-table {
        font-size: 12px;
    }

    .content-table th,
    .content-table td {
        padding: 10px 8px;
    }

    .media-preview-wrapper {
        width: 50px;
        height: 50px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .post-title,
    .post-content {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .manage-content-page {
        padding: 10px;
    }

    .page-header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .table-responsive {
        overflow-x: scroll;
    }

    .content-table {
        min-width: 800px;
    }
}

.edit-post-container {
    margin: 0 auto;
    padding: 20px;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.05rem;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.alert li {
    margin: 5px 0;
}

.edit-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 16px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: var(--white);
    color: var(--dark);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 200px;
    line-height: 1.7;
}

small {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.help-text {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
    display: block;
}

.char-count {
    text-align: left;
    font-weight: 500;
}

#charCount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.media-box {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
}

.media-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.media-box img,
.media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 48px;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.media-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
}

.media-checkbox input {
    display: none;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.checkmark i {
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.media-checkbox input:checked + .checkmark i {
    opacity: 1;
}

.media-box:has(input:not(:checked)) {
    opacity: 0.3;
    filter: grayscale(100%);
}

.media-box:has(input:not(:checked))::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: #ef4444;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.media-number {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.media-info {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

#selectedCount {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.no-media {
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.no-media i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 15px;
}

.no-media p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn i {
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

[data-theme="dark"] .edit-card {
    background-color: var(--white);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .media-info {
    color: var(--dark);
}

[data-theme="dark"] .form-control {
    background-color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .edit-post-container {
        padding: 15px;
    }

    .page-header {
        padding: 25px 20px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .edit-card {
        padding: 25px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .edit-card {
        padding: 20px;
    }

    .video-icon {
        font-size: 36px;
    }
}

.pricing-section {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h5 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-header h5 i {
    font-size: 28px;
    color: #667eea;
}

.pricing-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.pricing-card {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.pricing-card-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pricing-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.pricing-title h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.pricing-title span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.pricing-card-body {
    padding: 25px 20px;
    text-align: center;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.pricing-amount .amount {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.pricing-amount .currency {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-amount.free {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.pricing-amount.free i {
    font-size: 24px;
}

.pricing-note {
    background: #f8f9fa;
    border-right: 4px solid var(--secondary-color);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    font-size: 14px;
}

.pricing-note i {
    font-size: 20px;
    color: var(--secondary-color);
}

/* موبایل - فشرده و کوچک */
@media (max-width: 768px) {
    .pricing-section {
        padding: 15px;
        border-radius: 10px;
    }

    .pricing-header {
        margin-bottom: 15px;
    }

    .pricing-header h5 {
        font-size: 16px;
        gap: 5px;
    }

    .pricing-header h5 i {
        font-size: 18px;
    }

    .pricing-header p {
        font-size: 12px;
    }

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }

    .pricing-card {
        border-radius: 8px;
    }

    .pricing-card-header {
        padding: 10px;
        gap: 8px;
    }

    .pricing-icon {
        width: 35px;
        height: 35px;
        border-radius: 6px;
        font-size: 16px;
    }

    .pricing-title h6 {
        font-size: 12px;
        margin: 0 0 2px 0;
    }

    .pricing-title span {
        font-size: 10px;
    }

    .pricing-card-body {
        padding: 12px 10px;
    }

    .pricing-amount .amount {
        font-size: 18px;
    }

    .pricing-amount .currency {
        font-size: 10px;
    }

    .pricing-amount.free {
        font-size: 14px;
        gap: 5px;
    }

    .pricing-amount.free i {
        font-size: 16px;
    }

    .pricing-note {
        padding: 10px 12px;
        font-size: 11px;
        gap: 8px;
    }

    .pricing-note i {
        font-size: 14px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 576px) {
    .pricing-section {
        padding: 12px;
    }

    .pricing-cards {
        gap: 8px;
    }

    .pricing-card-header {
        padding: 8px;
        gap: 6px;
    }

    .pricing-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .pricing-title h6 {
        font-size: 11px;
    }

    .pricing-title span {
        font-size: 9px;
    }

    .pricing-card-body {
        padding: 10px 8px;
    }

    .pricing-amount .amount {
        font-size: 16px;
    }

    .pricing-note {
        padding: 8px 10px;
        font-size: 10px;
    }
}

/* ==================== Base Styles ==================== */
.packages-page {
    padding: 20px 0;
    min-height: 100vh;
}

/* ==================== Alert Styles ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert i {
    font-size: 22px;
}

.active-package-alert {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
}

.alert-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.alert-content h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* ==================== Tab Navigation ==================== */
.content-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn i {
    font-size: 18px;
}

.tab-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.tab-btn:hover:not(.active) {
    background: #f9fafb;
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ==================== Tab Content ==================== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Table Card ==================== */
.table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.19);
;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary-color);
    font-size: 22px;
}

.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-create:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    color: #fff;
}

.btn-create i {
    font-size: 14px;
}

/* ==================== Header Hint ==================== */
.header-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    color: #1e40af;
    font-size: 13px;
    font-weight: 500;
}

.header-hint i {
    font-size: 16px;
}

/* ==================== Packages Grid ==================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 25px;
}

.package-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    position: relative;
}

.package-card:hover:not(.disabled-package) {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.disabled-package {
    opacity: 0.6;
    pointer-events: none;
}

.disabled-package::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.locked-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #6b7280;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* ==================== Package Header ==================== */
.package-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.package-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.package-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.package-description {
    font-size: 13px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
}

/* ==================== Package Price ==================== */
.package-price {
    background: rgba(255, 255, 255, 0.19);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    display: block;
    color: var(--dark);
}

.price-currency {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* ==================== Package Features ==================== */
.package-features {
    padding: 20px;
    flex: 1;
    background: rgba(255, 255, 255, 0.19);
}

.feature-section {
    margin-bottom: 16px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

.feature-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.feature-section-title i {
    color: var(--primary-color);
    font-size: 16px;
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #f3f4f6;
}

.feature-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-item-icon.city {
    background: #dbeafe;
    color: #1e40af;
}

.feature-item-icon.district {
    background: #fef3c7;
    color: #92400e;
}

.feature-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-label {
    font-size: 12px;
    color: var(--dark);
    font-weight: 500;
}

.feature-value {
    font-size: 13px;
    color: var(--dark);
    font-weight: 600;
}

.feature-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

/* ==================== Package Footer ==================== */
.package-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.19);
}

.total-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--dark);
    font-size: 13px;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
}

.total-items i {
    color: var(--primary-color);
    font-size: 16px;
}

.total-items strong {
    color: var(--primary-color);
    font-size: 16px;
    margin: 0 3px;
}

.btn-purchase {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-purchase:hover:not(.disabled) {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-purchase.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.disabled-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

/* ==================== User Packages Grid ==================== */
.user-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 25px;
}

.user-package-card {
    background: rgba(255, 255, 255, 0.19);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.user-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.user-package-header {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 20px;
    color: #fff;
    position: relative;
}

.package-badge-active {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-package-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-package-title i {
    font-size: 20px;
}

.purchase-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    opacity: 0.95;
}

.purchase-date,
.purchase-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-package-body {
    padding: 20px;
}

.remaining-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.remaining-item {
    background: var(--white);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 10px;
    transition: all 0.2s ease;
}

.remaining-item:hover {
    background: #f3f4f6;
}

.remaining-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.city-item .remaining-icon {
    background: #dbeafe;
    color: #1e40af;
}

.district-item .remaining-icon {
    background: #fef3c7;
    color: #92400e;
}

.remaining-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.remaining-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.remaining-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.city-progress {
    background: #3b82f6;
}

.district-progress {
    background: #f59e0b;
}

.remaining-count {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}

.user-package-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.19);
}

.total-remaining {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 13px;
}

.total-remaining i {
    color: #10b981;
    font-size: 16px;
}

.total-remaining strong {
    color: #10b981;
    font-size: 18px;
    margin: 0 3px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

/* ==================== View All Section ==================== */
.view-all-section {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    color: #fff;
}

/* ==================== No Content ==================== */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.no-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .packages-grid,
    .user-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packages-grid,
    .user-packages-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .remaining-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .card-header h3 {
        font-size: 16px;
    }

    .header-hint {
        width: 100%;
        justify-content: center;
    }

    .content-tabs {
        gap: 8px;
        padding: 5px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .user-package-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .packages-page {
        padding: 15px 0;
    }

    .package-features {
        padding: 16px;
    }

    .package-footer {
        padding: 14px 16px;
    }

    .feature-item {
        padding: 8px 10px;
    }

    .feature-item-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .alert {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ==================== Animations ==================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================== Base Styles ==================== */
.my-packages-page {
    padding: 20px 0;
    min-height: 100vh;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb-section {
    margin-bottom: 20px;
}

.breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: #d1d5db;
    margin: 0 4px;
}

/* ==================== Page Header ==================== */
.page-header {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.header-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px;
}

.header-text p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.btn-back-to-packages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back-to-packages:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== Alert Styles ==================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert i {
    font-size: 22px;
}

/* ==================== Statistics Cards ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-icon.active {
    background: #10b981;
}

.stat-icon.expired {
    background: #6b7280;
}

.stat-icon.total {
    background: #3b82f6;
}

.stat-icon.money {
    background: #f59e0b;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* ==================== Packages List ==================== */
.packages-list-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.packages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.package-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.package-item.active {
    border-color: #10b981;
}

.package-item.expired {
    opacity: 0.7;
}

.package-item-header {
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.package-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.package-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
}

.meta-item i {
    font-size: 16px;
}

.package-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.package-status-badge.expired {
    background: #f3f4f6;
    color: #6b7280;
}

.package-item-body {
    padding: 20px;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.usage-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
}

.usage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.usage-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.usage-icon.city {
    background: #dbeafe;
    color: #1e40af;
}

.usage-icon.district {
    background: #fef3c7;
    color: #92400e;
}

.usage-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.usage-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.usage-count {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
}

.usage-progress {
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-fill.city {
    background: #3b82f6;
}

.progress-fill.district {
    background: #f59e0b;
}

.package-item-footer {
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.total-remaining {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--dark);
    font-size: 14px;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
}

.total-remaining i {
    color: #10b981;
    font-size: 18px;
}

.total-remaining strong {
    color: #10b981;
    font-size: 18px;
    margin: 0 3px;
}

/* ==================== Pagination ==================== */
.pagination-wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

/* ==================== No Content ==================== */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.no-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-buy-package {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-buy-package:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    color: #fff;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usage-grid {
        grid-template-columns: 1fr;
    }

    .package-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .package-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .packages-list-container {
        padding: 15px;
    }

    .package-item-header,
    .package-item-body {
        padding: 15px;
    }
}

