/* ========== ВСИЧКИ CSS СТИЛОВЕ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Светла тема (по подразбиране) */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --text-secondary: #666666;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ffffff;
    --border-color: #e9ecef;
    --input-bg: #ffffff;
    --input-border: #e9ecef;
    --stat-bg: #f8f9fa;
    --hover-bg: rgba(0,0,0,0.05);
    --map-title-bg: rgba(255,255,255,0.95);
    --status-panel-bg: rgba(255,255,255,0.98);
    --legend-bg: rgba(255,255,255,0.95);
    --contact-modal-bg: #ffffff;
    --contact-info-bg: #f8f9fa;
    --link-color: #667eea;
    --icon-color: #667eea;
    --status-badge-bg: #eef2f6;
    --status-badge-text: #2c3e50;
    --restricted-opacity: 0.4;
    --admin-badge: #ffc107;
    --admin-text: #000000;
    --favorite: #ffc107;
    --favorite-hover: #ffb300;
    --install-btn-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Тъмна тема */
body.dark-theme {
    --primary: #3498db;
    --secondary: #667eea;
    --accent: #e74c3c;
    --light: #2d2d2d;
    --dark: #1a1a1a;
    --success: #27ae60;
    --warning: #f39c12;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: #2d2d2d;
    --header-bg: #2d2d2d;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ffffff;
    --border-color: #404040;
    --input-bg: #3d3d3d;
    --input-border: #404040;
    --stat-bg: #363636;
    --hover-bg: rgba(255,255,255,0.1);
    --map-title-bg: rgba(45,45,45,0.95);
    --status-panel-bg: rgba(45,45,45,0.98);
    --legend-bg: rgba(45,45,45,0.95);
    --contact-modal-bg: #2d2d2d;
    --contact-info-bg: #363636;
    --link-color: #667eea;
    --icon-color: #667eea;
    --status-badge-bg: #404040;
    --status-badge-text: #ffffff;
    --admin-badge: #ffc107;
    --admin-text: #000000;
    --favorite: #ffc107;
    --favorite-hover: #ffb300;
    --install-btn-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Сайдбар */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header .logo-icon {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
    background: transparent;
    filter: none;
}

.sidebar-header img.logo-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: optimizeQuality;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    color: var(--sidebar-text);
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary);
}

.nav-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--secondary);
}

.user-info {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: white;
}

.user-name {
    color: white;
    font-weight: 600;
}

.user-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Основно съдържание */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.header {
    background-color: var(--header-bg);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.header h1 {
    color: var(--primary);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.search-bar {
    display: flex;
    width: 300px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--input-border);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-bar button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--primary);
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    height: 100%;
}

/* Страници */
.page {
    display: none;
    height: 100%;
    animation: fadeIn 0.5s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Карта */
#map {
    height: 100%;
    width: 100%;
    background: #c8e0f0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.map-container {
    height: 100%;
    position: relative;
}

/* Заглавие на картата */
.map-title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--map-title-bg);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: left;
    min-width: 280px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-left: 5px solid var(--secondary);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.map-title h2 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.map-title h2 i {
    color: var(--secondary);
}

.map-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.map-title p i {
    color: var(--success);
    font-size: 14px;
}

/* Map filter container */
.map-filter-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: var(--map-title-bg);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    pointer-events: auto;
    transition: background-color 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    font-size: 0.95rem;
}

.filter-buttons-map {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn-map {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 500;
    pointer-events: auto;
}

.filter-btn-map:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--light);
}

.filter-btn-map.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.filter-btn-map i {
    font-size: 0.9rem;
}

.spot-filter {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    pointer-events: auto; /* map-title има pointer-events:none */
}

.spot-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.spot-filter-btn i {
    font-size: 0.9rem;
    color: var(--secondary);
}

.spot-filter-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--light);
    transform: translateY(-1px);
}

.spot-filter-btn.active,
.spot-filter-btn[aria-pressed="true"] {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.spot-filter-btn.active i,
.spot-filter-btn[aria-pressed="true"] i {
    color: #ffffff;
}

/* Статус панел */
.status-panel.restricted {
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
}

.status-panel.restricted .login-prompt {
    opacity: 1;
    pointer-events: auto;
    padding: 24px 20px;
    font-size: 1.05rem;
}

.status-panel.restricted .login-prompt-header {
    margin-bottom: 12px;
}

.status-panel.restricted .login-prompt-icon {
    font-size: 32px;
}

.status-panel.restricted .login-prompt-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.status-panel.restricted .login-prompt-description {
    font-size: 0.95rem;
    margin: 8px 0;
}

.status-panel.restricted .status-title,
.status-panel.restricted .status-item,
.status-panel.restricted .last-update {
    display: none !important;
}

.status-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--status-panel-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1000;
    min-width: 260px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    pointer-events: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.status-panel:not(.restricted) {
    pointer-events: auto;
}

.status-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.status-title i {
    color: var(--secondary);
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 500;
    pointer-events: auto;
}

.filter-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--light);
}

.filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.filter-btn i {
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.spot-number {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.spot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--status-badge-bg);
    color: var(--status-badge-text);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.disabled-badge {
    background: rgba(52, 152, 219, 0.2);
    color: var(--secondary);
}

.disabled-badge i {
    font-size: 14px;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 30px;
}

.status-value i {
    font-size: 12px;
}

.status-empty {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

.status-occupied {
    background: rgba(231, 76, 60, 0.15);
    color: var(--accent);
}

.status-disabled-empty {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary);
}

.status-disabled-occupied {
    background: rgba(231, 76, 60, 0.15);
    color: var(--accent);
}

.status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.last-update {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.last-update i {
    color: var(--secondary);
    font-size: 12px;
}

/* Login prompt в статус панела */
.login-prompt {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 16px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    border: 2px dashed var(--secondary);
    pointer-events: auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.login-prompt:hover::before {
    left: 100%;
}

.login-prompt:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.08) 100%);
    transform: translateY(-1px);
}

.login-prompt a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-prompt a:hover {
    color: var(--primary);
    text-decoration: none;
}

.login-prompt a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.login-prompt a:hover::after {
    width: 100%;
}

/* Долен панел с информация */
.info-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.parking-stats {
    background: var(--status-panel-bg);
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    font-size: 1.1rem;
    color: var(--secondary);
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.stat-item .value {
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.controls {
    background: var(--status-panel-bg);
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    pointer-events: auto;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.controls button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.controls button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.controls button i {
    font-size: 1rem;
}

/* Легенда */
.legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--legend-bg);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.85rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.legend-color.blue {
    background: var(--secondary);
    opacity: 0.7;
}

.legend-color.green {
    background: var(--success);
    opacity: 0.7;
}

.legend-color.red {
    background: var(--accent);
    opacity: 0.7;
}

.legend-color.yellow {
    background: var(--favorite);
    opacity: 0.7;
}

.icon-success {
    color: var(--success);
}

/* Стилове за профил */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.profile-header {
    background: var(--bg-gradient);
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border: 4px solid rgba(255,255,255,0.3);
}

.profile-header-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: white;
}

.profile-header-info p {
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.profile-details {
    padding: 30px;
}

.profile-details h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.profile-details h3 i {
    color: var(--secondary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.detail-item .detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 10px;
    background: var(--stat-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.edit-profile-btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Модален прозорец */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.modal-content h3 i {
    color: var(--secondary);
}

.user-detail-item {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--stat-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.user-detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-word;
}

.user-detail-value i {
    color: var(--secondary);
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.modal-actions button:hover {
    transform: translateY(-2px);
}

.modal-actions .close-btn {
    background: var(--secondary);
    color: white;
}

.modal-actions .danger-btn {
    background: var(--accent);
    color: white;
}

.edit-modal-content .form-group {
    margin-bottom: 15px;
}

.edit-modal-content label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.edit-modal-content input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-color);
}

.edit-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.edit-modal-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.edit-modal-actions .save-btn {
    background: var(--success);
    color: white;
}

.edit-modal-actions .cancel-btn {
    background: var(--accent);
    color: white;
}

/* Бутони */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

.btn-favorite {
    background: var(--favorite);
    color: black;
}

.btn-favorite:hover {
    background: var(--favorite-hover);
}

.btn-navigate {
    background: var(--success);
    color: white;
}

.btn-navigate:hover {
    background: #219a52;
}

/* Постоянен бутон за инсталиране */
.install-button-container {
    margin: 15px 20px;
    text-align: center;
}

.install-btn-permanent {
    background: var(--install-btn-bg);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.install-btn-permanent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.install-btn-permanent i {
    font-size: 1.2rem;
}

.install-btn-permanent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* iOS инструкции */
.ios-instructions {
    background: var(--stat-bg);
    border-radius: 12px;
    padding: 15px;
    margin: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.ios-instructions h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-instructions h4 i {
    color: var(--secondary);
}

.ios-instructions p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-instructions p i {
    color: var(--secondary);
    width: 20px;
}

/* Стилове за вход */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.auth-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white;
}

.auth-header p {
    color: rgba(255,255,255,0.9);
}

.auth-form {
    padding: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.auth-form .form-group input::placeholder {
    color: var(--text-secondary);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links.auth-links-margin {
    margin-top: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.auth-divider span {
    padding: 0 10px;
}

.social-login {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: var(--text-color);
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Стилове за регистрация */
.register-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.register-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.register-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white;
}

.register-header p {
    color: rgba(255,255,255,0.9);
}

.register-form {
    padding: 30px;
}

.register-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.register-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.register-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.register-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.register-form .form-group input::placeholder {
    color: var(--text-secondary);
}

.register-form .form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-checkbox label {
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.terms-checkbox a {
    color: var(--link-color);
    text-decoration: none;
}

/* Списъци - Любими */
.favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.favorite-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.favorite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.favorite-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.favorite-card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.favorite-card p i {
    color: var(--secondary);
    margin-right: 8px;
}

.favorite-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-free {
    background-color: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

.status-busy {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--accent);
}

.favorite-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.favorite-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.favorite-actions button i {
    margin-right: 5px;
}

.favorite-actions .navigate-btn {
    background: var(--success);
    color: white;
}

.favorite-actions .remove-btn {
    background: var(--accent);
    color: white;
}

/* Настройки */
.settings-list {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.setting-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
    flex-wrap: wrap;
    gap: 15px;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
    min-width: 200px;
}

.setting-info h4 {
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

select {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    min-width: 120px;
}

select option {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Балонче за контакти */
.contact-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    z-index: 2000;
    animation: pulse 2s infinite;
}

.contact-bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(0,0,0,0.8);
    }
    100% {
        box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    }
}

/* Модален прозорец за контакти */
.contact-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--contact-modal-bg);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    display: none;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.contact-modal.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification съобщение */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--success);
    display: none;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--accent);
}

.notification.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification i {
    font-size: 1.2rem;
    min-width: 20px;
}

.notification.success i {
    color: var(--success);
}

.notification.error i {
    color: var(--accent);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.notification.hide {
    animation: slideOutRight 0.3s ease forwards;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.modal-header h3 i {
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-info {
    background: var(--contact-info-bg);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info i {
    color: var(--secondary);
    width: 20px;
}

/* Инсталационен банер за PWA (временен) */
.install-banner {
    position: fixed;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 3000;
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin: 0 auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.install-banner-text h4 {
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 1rem;
}

.install-banner-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.install-banner-actions {
    display: flex;
    gap: 8px;
}

.install-banner-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.install-banner-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стилове за админ панел */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--stat-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.admin-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary);
}

.admin-stat-label {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 14px;
}

.users-table {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.users-table h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.users-table th, .users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.users-table th {
    background-color: var(--stat-bg);
    font-weight: bold;
    white-space: nowrap;
}

.users-table tr:hover {
    background-color: var(--hover-bg);
}

.admin-badge {
    background: var(--admin-badge);
    color: var(--admin-text);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.user-badge {
    background: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
}

.deleted-user {
    opacity: 0.6;
}

.deleted-user .btn-small {
    opacity: 1;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
    margin: 2px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-small:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: black;
}

.btn-info {
    background: var(--secondary);
    color: white;
}

.search-box {
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    background: var(--input-bg);
    color: var(--text-color);
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 5px;
    min-width: 35px;
}

.pagination button:hover {
    background: var(--hover-bg);
}

.pagination button.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Мобилна версия */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .container {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        min-height: 50px;
        flex-direction: row;
        position: relative;
        z-index: 100;
        padding: 0;
    }
    
    .sidebar-header {
        padding: 5px 8px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        min-width: 70px;
    }
    
    .sidebar-header h2 {
        font-size: 1rem;
        margin: 0;
    }
    
    .sidebar-header .logo-icon {
        width: 55px;
        height: 55px;
        margin-right: 4px;
    }
    
    .sidebar-header img.logo-icon {
        width: 55px;
        height: 55px;
    }
    
    .nav-menu {
        display: flex;
        padding: 0 2px;
        flex: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 5px;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 5px;
        border-left: none;
        border-bottom: 3px solid transparent;
        min-width: 35px;
        margin: 0 1px;
    }
    
    .nav-item:hover, .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--secondary);
    }
    
    .nav-item span {
        display: none !important;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 1.3rem;
        color: var(--secondary);
    }
    
    .user-info {
        display: none;
    }
    
    .header {
        padding: 8px 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    .header h1 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
    }
    
    .search-bar input {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .content-area {
        padding: 8px;
        height: calc(100vh - 110px);
        overflow-y: auto;
    }
    
    .map-container {
        height: 55vh;
        position: relative;
    }
    
    .map-title {
        top: 5px;
        left: 5px;
        right: 5px;
        min-width: auto;
        padding: 8px 10px;
    }
    
    .map-title h2 {
        font-size: 1rem;
    }
    
    .map-title p {
        font-size: 0.75rem;
    }
    
    .map-filter-container {
        top: 75px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 10px 12px;
        width: 90vw;
        max-width: 95%;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .filter-label {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    .filter-buttons-map {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn-map {
        font-size: 0.85rem;
        padding: 10px 12px;
        flex: 0 1 auto;
        min-width: 100px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .filter-btn-map i {
        display: inline-block;
    }
    
    .status-panel {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 10px 0 5px;
        width: 100%;
        min-width: auto;
        pointer-events: auto;
        padding: 10px;
    }

    .spot-filter {
        gap: 6px;
        margin-top: 8px;
        flex-wrap: wrap;
    }

    .spot-filter-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .info-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        flex-direction: column;
        gap: 5px;
        margin: 5px 0;
        pointer-events: auto;
    }
    
    .parking-stats {
        width: 100%;
        justify-content: space-around;
        padding: 8px 10px;
        gap: 10px;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
    
    .controls {
        width: 100%;
    }
    
    .controls button {
        width: 100%;
        justify-content: center;
        padding: 8px 15px;
    }
    
    .legend {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 5px 0;
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 10px;
    }
    
    .profile-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .profile-header-info h2 {
        font-size: 1.3rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .profile-details {
        padding: 10px;
    }
    
    .detail-item .detail-value {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    
    .edit-profile-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .auth-container,
    .register-container,
    .profile-container,
    .admin-container {
        margin: 5px;
        width: calc(100% - 10px);
        overflow-y: auto;
    }
    
    .auth-header,
    .register-header {
        padding: 15px 10px;
    }
    
    .auth-header i,
    .register-header i {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
    
    .auth-header h2,
    .register-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-form,
    .register-form {
        padding: 10px;
    }
    
    .auth-form .form-group,
    .register-form .form-group {
        margin-bottom: 10px;
    }
    
    .auth-form .form-group input,
    .register-form .form-group input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .register-form .form-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 0;
    }
    
    .auth-btn {
        padding: 10px;
        font-size: 1rem;
    }
    
    .auth-links {
        margin-top: 10px;
        font-size: 0.9rem;
    }
    
    .social-login {
        gap: 5px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .terms-checkbox {
        margin: 10px 0;
        align-items: flex-start;
    }
    
    .terms-checkbox input {
        margin-top: 2px;
        width: 16px;
        height: 16px;
    }
    
    .terms-checkbox label {
        font-size: 0.85rem;
        flex: 1;
        line-height: 1.3;
    }
    
    .settings-list {
        margin-top: 5px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .setting-info {
        width: 100%;
    }
    
    .setting-info h4 {
        font-size: 0.95rem;
    }
    
    .setting-info p {
        font-size: 0.8rem;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
    
    select {
        width: 100%;
        min-width: auto;
        padding: 8px 10px;
    }
    
    .favorites-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }
    
    .favorite-card {
        padding: 12px;
    }
    
    .favorite-name {
        font-size: 1rem;
    }
    
    .favorite-status {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .contact-modal {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 70px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-bubble {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .contact-form textarea {
        padding: 8px;
        font-size: 0.9rem;
        min-height: 80px;
    }
    
    .install-banner {
        bottom: 70px;
        left: 5px;
        right: 5px;
        max-width: none;
        padding: 10px;
    }
    
    .install-banner-content {
        gap: 8px;
    }
    
    .install-banner-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .install-banner-text h4 {
        font-size: 0.9rem;
    }
    
    .install-banner-text p {
        font-size: 0.75rem;
    }
    
    .install-banner-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .admin-stat-card {
        padding: 12px;
    }
    
    .admin-stat-number {
        font-size: 1.8rem;
    }
    
    .admin-stat-label {
        font-size: 0.8rem;
    }
    
    .users-table {
        padding: 10px;
        overflow-x: auto;
        width: 100%;
    }
    
    .users-table table {
        min-width: 100%;
        font-size: 0.75rem;
        width: 100%;
        table-layout: fixed;
    }
    
    .users-table th, .users-table td {
        padding: 6px 4px;
        white-space: normal;
        overflow-wrap: break-word;
    }
    
    .users-table td.actions-cell {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }
    
    .users-table td.actions-cell .btn-small {
        margin: 2px 2px 0 0;
    }
    
    .btn-small {
        padding: 4px 6px;
        font-size: 0.75rem;
        margin: 2px 0;
        display: inline-block;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .favorite-actions {
        flex-direction: column;
    }
    
    .install-button-container {
        margin: 10px 10px;
    }
}

@media (max-width: 380px) {
    .sidebar-header {
        padding: 5px 5px;
        min-width: 60px;
    }
    
    .sidebar-header h2 {
        font-size: 0.85rem;
    }
    
    .sidebar-header .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .users-table {
        padding: 5px;
    }
    
    .users-table h2 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .users-table table {
        min-width: 100%;
        font-size: 0.65rem;
    }
    
    .users-table th, .users-table td {
        padding: 4px 2px;
    }
    
    .btn-small {
        padding: 2px 4px;
        font-size: 0.65rem;
        margin: 1px 0;
    }
    
    .nav-menu {
        gap: 3px;
        padding: 0 1px;
    }
    
    .nav-item {
        padding: 6px 3px;
        min-width: 32px;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .map-title h2 {
        font-size: 0.9rem;
    }
    
    .map-title p {
        font-size: 0.7rem;
    }
    
    .status-panel {
        padding: 8px;
    }
    
    .status-item {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
    
    .spot-badge {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .parking-stats {
        padding: 6px 8px;
        gap: 8px;
    }
    
    .stat-item {
        font-size: 0.75rem;
    }
    
    .stat-item i {
        font-size: 0.8rem;
    }
    
    .controls button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* Допълнителни responsive правила за много малки екрани */
@media (max-width: 480px) {
    .map-filter-container {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 95vw;
        max-width: none;
        padding: 12px 12px;
        border-radius: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .filter-label {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    .filter-buttons-map {
        width: 100%;
        gap: 6px;
        justify-content: center;
    }
    
    .filter-btn-map {
        font-size: 0.8rem;
        padding: 10px 12px;
        flex: 0 1 auto;
        min-width: 90px;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    
    .filter-btn-map i {
        font-size: 1rem;
        display: inline-block;
    }
    
    .users-table {
        font-size: 0.9rem;
    }

    .users-table th, .users-table td {
        padding: 8px 6px;
    }

    .users-table th:nth-child(4), .users-table td:nth-child(4),
    .users-table th:nth-child(6), .users-table td:nth-child(6),
    .users-table th:nth-child(7), .users-table td:nth-child(7),
    .users-table th:nth-child(8), .users-table td:nth-child(8) {
        display: none;
    }

    .users-table td.actions-cell {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .users-table td.actions-cell .btn-small {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .users-table table, .users-table thead {
        width: 100%;
    }
    .users-table thead {
        display: none;
    }
    .users-table tbody, .users-table tr {
        display: block;
    }
    .users-table tr {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 10px;
    }
    .users-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 8px;
        border-bottom: none;
    }
    .users-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
        margin-right: 8px;
        flex: 0 0 40%;
    }
    .users-table td.actions-cell {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .users-table td.actions-cell .btn-small {
        width: 100%;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

[data-lang="bg"] .lang-en {
    display: none !important;
}

[data-lang="en"] .lang-bg {
    display: none !important;
}

body.offline::after {
    content: "📴 Офлайн режим";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning);
    color: #000;
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    z-index: 10000;
    font-weight: 600;
}

body.offline .lang-en::after {
    content: "📴 Offline mode";
}

/* Login prompt status panel styles */
.login-prompt-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.login-prompt-icon {
    color: var(--secondary);
    font-size: 1.1rem;
}

.login-prompt-title {
    font-weight: 600;
    color: var(--text-color);
}

.login-prompt-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Modal notification styles */
.notification-title {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.notification-message {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.notification-action-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.notification-action-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.notification-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.notification-action-btn i {
    margin-right: 8px;
}

/* Модална нотификация */
.modal-notification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-notification.active {
    display: flex;
}

.notification-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

.notification-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.notification-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    word-wrap: break-word;
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.notification-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.notification-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.notification-btn.primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.notification-btn.primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.notification-btn.secondary {
    background: var(--stat-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.notification-btn.secondary:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

/* Inline style replacements */
.hidden {
    display: none;
}

.favorites-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    margin: 40px auto;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.favorites-login-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.large-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.favorites-login-prompt:hover .large-icon {
    opacity: 1;
    transform: scale(1.1);
}

.favorites-login-prompt button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.logout-btn {
    background: var(--accent);
    margin-top: 10px;
}

.admin-title {
    margin-bottom: 20px;
}

.center-text {
    text-align: center;
}

.error-msg {
    color: var(--accent);
    text-align: center;
    margin-top: 10px;
}

.success-msg {
    color: var(--success);
    text-align: center;
    margin-top: 10px;
}

