:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --primary: #3498db;
    --primary-dark: #2980b9;
    --accent: #2ecc71;
    --danger: #e74c3c;
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 30px 15px;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 900px;
}

/* Hlavička */
.app-header {
    text-align: center;
    margin-bottom: 25px;
}

.app-header h1 {
    font-size: 2rem;
    color: var(--text-color);
}

.app-header .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Navigace - Záložky */
.tab-nav {
    display: flex;
    gap: 8px;
    background: #e2e8f0;
    padding: 5px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Obsah záložek */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Filtry */
.filter-section {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--card-bg);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn.active, .pill-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Karta formuláře / nastavení */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

input[type="url"], input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Tlačítka */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }

/* Grid výletů */
.vylety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.vylet-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid var(--primary);
    position: relative;
}

.vylet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.vylet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    text-transform: uppercase;
}

.vylet-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.vylet-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 15px;
    flex-grow: 1;
}

.vylet-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 10px;
}

.map-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.map-link:hover { text-decoration: underline; }

.btn-delete {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-delete:hover { background: #fee2e2; }

/* Status zprávy */
.status-msg {
    margin-top: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.status-msg.info { display: block; background: #e0f2fe; color: #0369a1; }
.status-msg.success { display: block; background: #dcfce7; color: #15803d; }
.status-msg.error { display: block; background: #fee2e2; color: #b91c1c; }

.info-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
}

code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}