* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
}

.navbar {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 20px; font-size: 0.9rem; }
.nav-item { opacity: 0.7; padding: 4px 0; border-bottom: 2px solid transparent; transition: opacity 0.15s, border-color 0.15s; }
.nav-item:hover, .nav-item.active { opacity: 1; }
.nav-item.active { border-bottom-color: #fff; }

.container { max-width: 960px; margin: 0 auto; padding: 20px 16px; }

.header-bar { margin-bottom: 12px; }
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.date-nav h1 { font-size: 1.5rem; font-weight: 700; min-width: 140px; text-align: center; }
.nav-arrow {
    text-decoration: none;
    font-size: 1.5rem;
    color: #1a1a2e;
    padding: 6px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}
.nav-arrow:hover { background: #e8e8e8; border-color: #aaa; }
.nav-arrow.disabled { opacity: 0.3; pointer-events: none; }

.refresh-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-refresh {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s;
}
.btn-refresh:hover { background: #2d2d4a; }
.btn-refresh:disabled { opacity: 0.5; cursor: not-allowed; }
.refresh-time { color: #888; font-size: 0.82rem; }

.section { margin-bottom: 24px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background 0.15s;
}
.section-header:hover { background: #fafafa; }
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.section-body.open { max-height: 9999px; }

.card {
    background: #fff;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}
.card-disliked { opacity: 0.55; }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}
.card-header:hover { background: #f9f9fb; }
.card-title { font-weight: 600; font-size: 0.95rem; flex: 1; padding-right: 10px; }
.card-arrow { font-size: 0.75rem; color: #888; transition: transform 0.2s; }

.card-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.card-body.open { max-height: 2000px; }

.card-details { padding: 4px 18px 14px; }
.card-details p { margin-bottom: 5px; font-size: 0.9rem; line-height: 1.5; }
.card-details a { color: #1a1a2e; word-break: break-all; }

.phone-line { font-size: 1.05rem; margin: 10px 0 !important; }

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 18px 16px;
}
.btn-like, .btn-dislike, .btn-delete {
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s, transform 0.1s;
}
.btn-like:active, .btn-dislike:active, .btn-delete:active { transform: scale(0.96); }
.btn-like { background: #22c55e; color: #fff; }
.btn-like:hover { background: #16a34a; }
.btn-dislike { background: #ef4444; color: #fff; }
.btn-dislike:hover { background: #dc2626; }
.btn-delete { background: #991b1b; color: #fff; }
.btn-delete:hover { background: #7f1d1d; }

.btn-copy {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    margin-left: 10px;
    transition: background 0.15s;
}
.btn-copy:hover { background: #2d2d4a; }

.btn-download {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.15s;
}
.btn-download:hover { background: #1d4ed8; }

.message-box { margin: 12px 0; }
.message-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 6px;
    background: #fafafa;
    font-family: inherit;
}
.message-box .btn-copy { margin-top: 8px; margin-left: 0; }

h1 { font-size: 1.4rem; margin-bottom: 16px; }

.empty { text-align: center; color: #999; margin-top: 60px; font-size: 1rem; }

@media (max-width: 640px) {
    .navbar { flex-direction: column; align-items: flex-start; }
    .nav-links { width: 100%; justify-content: space-around; }
    .container { padding: 14px 10px; }
    .date-nav h1 { font-size: 1.2rem; min-width: auto; }
    .card-header { padding: 12px 14px; }
    .card-details { padding: 4px 14px 12px; }
    .card-actions { padding: 0 14px 14px; }
    .card-title { font-size: 0.87rem; }
    .btn-like, .btn-dislike, .btn-delete { padding: 8px 18px; font-size: 0.85rem; flex: 1; text-align: center; }
}
