﻿:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f7f1e3;
    --bg-color: #f0f2f5;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background: white;
    padding: 20px; /* Reduced padding to give more inner space */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#sponsor-btn {
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.sponsor-fixed {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 9999;
    pointer-events: auto;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

.hidden {
    display: none !important;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.danger {
    background-color: #e74c3c;
    color: white;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}
.tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tab-btn {
    padding: 10px 12px; /* Reduced from 20px */
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 15px; /* Reduced from 16px */
    color: #666;
    margin-bottom: -2px;
    white-space: nowrap;
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
}

/* Remove up/down spinners from number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.item-card {
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    background: #f9f9f9;
}

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-small {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn.small {
    padding: 5px 10px;
    font-size: 14px;
    background-color: var(--secondary-color);
    color: white;
}

.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
    min-height: 100px;
    resize: vertical;
}

/* Diary Styles */
.diary-entry {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
}

.diary-header {
    background: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.diary-header:hover {
    background: #eee;
}

.diary-controls {
    display: flex;
    gap: 5px;
}

.diary-body {
    padding: 15px;
    display: none;
    border-top: 1px solid #f0f0f0;
}

.diary-body.open {
    display: block;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spot-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint {
    color: #888;
    font-size: 0.9em;
}
