:root {
    --bg-color: #f4f4f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --header-color: #1a202c;
    --subtitle-color: #666666;
    --info-bg: #fafafa;
    --sidebar-bg: #1a202c;
    --sidebar-text: #cbd5e0;
    --border-color: #e2e8f0;
    --accent-color: #f38020;
    --accent-hover: #d96b12;
}

/* Mörkt tema / Dark Mode */
body.dark-mode {
    --bg-color: #121824;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --header-color: #f8fafc;
    --subtitle-color: #94a3b8;
    --info-bg: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --border-color: #334155;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* --- VÄNSTER SIDOMENY (SIDEBAR) --- */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    justify-content: space-between;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar h2 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.city-btn {
    background-color: transparent;
    color: var(--sidebar-text);
    border: 2px solid transparent;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.city-btn:hover {
    background-color: #2d3748;
    color: white;
}

.city-btn.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
}

/* Dark mode-knapp i sidomenyn */
.theme-toggle-btn {
    background-color: #2d3748;
    color: white;
    border: 1px solid #4a5568;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    width: 100%;
}

.theme-toggle-btn:hover {
    background-color: #4a5568;
}

/* --- HUVUDINNEHÅLL --- */
.main-content {
    flex-grow: 1;
    padding: 40px 20px;
    max-width: 1200px;
}

/* SÖKFÄLT STIL */
.search-container {
    margin-bottom: 25px;
}

#search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(243, 128, 32, 0.2);
}

/* STARTSIDA (HERO BOX & INFO) */
.hero-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--subtitle-color);
    margin-bottom: 30px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.info-card {
    background-color: var(--info-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--header-color);
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--subtitle-color);
    line-height: 1.4;
}

.cta-box {
    text-align: center;
    padding: 20px;
    background: var(--info-bg);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}

.cta-box h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--header-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

header {
    margin-bottom: 30px;
}

h1 {
    color: var(--header-color);
    margin: 0 0 10px 0;
}

.subtitle {
    color: var(--subtitle-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Rutnät för restaurangkorten */
.restaurant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Stil för restaurangkort */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s;
    position: relative;
}

/* Favoritstjärna i hörnet på kortet */
.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.3;
    transition: transform 0.2s, opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.fav-btn:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

.fav-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 3px #f38020);
}

.card h3 {
    margin-top: 0;
    color: var(--header-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    padding-right: 30px;
}

.info-box {
    font-size: 0.9rem;
    color: var(--subtitle-color);
    background-color: var(--info-bg);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
}

.info-box p {
    margin: 4px 0;
}

.info-box a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Live status-märkning */
.status-badge {
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 0;
    display: block;
}

.status-open {
    color: #22c55e;
}

.status-closed {
    color: #ef4444;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.menu-list li {
    margin-bottom: 10px;
    line-height: 1.4;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Framhävd dagens rätt */
.menu-list li.today-highlight {
    background-color: rgba(243, 128, 32, 0.15);
    border-left: 4px solid var(--accent-color);
    font-weight: 500;
}

.today-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

.day {
    font-weight: bold;
    color: var(--accent-color);
}

.card-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.card-btn:hover {
    background-color: var(--accent-hover);
}

a {
    text-decoration: none;
}

.city-section {
    display: none;
}

.city-section.active {
    display: block;
}

/* Mobilanpassning */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 20px;
    }
}