/* styles.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}
.container {
    max-width: 375px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}
.header {
    padding: 20px 16px 16px;
    background: #fff;
}
.date-info, .users-info {
    color: #8e8e93;
    font-size: 13px;
}
.date-info { margin-bottom: 4px; }
.controls {
    padding: 0 16px 20px;
    background: #fff;
    border-bottom: 0.5px solid #c6c6c8;
}
.btn-group {
    display: flex;
    gap: 8px;
}
.btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary {
    background: #3a3a3c;
    color: white;
}
.btn-primary:active {
    background: #2c2c2e;
    transform: scale(0.98);
}
.btn-secondary {
    background: #f2f2f7;
    color: #3a3a3c;
}
.btn-secondary:active {
    background: #e5e5ea;
    transform: scale(0.98);
}
.conversation-grid {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.conversation-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.box-header {
    padding: 16px;
    border-bottom: 0.5px solid #c6c6c8;
    background: #fff;
}
.box-title {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.5px;
    color: #8e8e93;
    text-transform: uppercase;
}
.conversation-list {
    min-height: 120px;
}
.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 0.5px solid #c6c6c8;
    background: #fff;
    transition: background-color 0.2s ease;
}
.conversation-item:last-child {
    border-bottom: none;
}
.conversation-item:active {
    background: #f2f2f7;
}
.conversation-name {
    font-size: 17px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}
.conversation-actions {
    display: flex;
    gap: 12px;
}
.action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
.action-btn:active {
    transform: scale(0.9);
}
.move-btn { background: #ff9500; color: white; }
.back-btn { background: #8e8e93; color: white; }
.delete-btn { background: #ff3b30; color: white; }
.down-btn { background: #ff9500; color: white; }
.empty-state {
    padding: 32px 16px;
    text-align: center;
    color: #8e8e93;
    font-size: 15px;
}
.add-person-section {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 375px;
    background: #fff;
    border-top: 0.5px solid #c6c6c8;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.add-person-input {
    display: flex;
    gap: 8px;
}
.add-person-input input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid #c6c6c8;
    border-radius: 8px;
    font-size: 17px;
    background: #f2f2f7;
    outline: none;
}
.add-person-input input:focus {
    border-color: #3a3a3c;
    background: #fff;
}
.share-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 4px;
}
.content-wrapper {
    padding-bottom: 120px;
}
.name-prompt, .edit-name-prompt, .box-selection-prompt, .move-prompt, .remove-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 300px;
}
.move-prompt {
    padding: 0;
    overflow: hidden;
}
.name-prompt input, .edit-name-prompt input {
    padding: 10px;
    border: 1px solid #c6c6c8;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}
.name-prompt input:focus, .edit-name-prompt input:focus {
    border-color: #3a3a3c;
}
.name-prompt button, .edit-name-prompt button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #3a3a3c;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
.name-prompt button:active, .edit-name-prompt button:active {
    background: #2c2c2e;
}
.box-selection-prompt .option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #f2f2f7;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
}
.box-selection-prompt .option:last-child {
    border-bottom: none;
}
.box-selection-prompt .option:active {
    background: #f2f2f7;
}
.move-prompt .option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f2f2f7;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}
.move-prompt .option:last-child {
    border-bottom: none;
}
.move-prompt .option:active {
    background: #f2f2f7;
}
.move-prompt .option .color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.move-prompt .option span:nth-child(2) {
    flex: 1;
    margin-left: 12px;
    font-size: 16px;
}
.move-prompt .option .plus {
    font-size: 24px;
    color: #8e8e93;
}
.color-circle.red { background-color: #ff0000; }
.color-circle.yellow { background-color: #ffd700; }
.color-circle.lightgreen { background-color: #90ee90; }
.color-circle.darkgreen { background-color: #228b22; }
.remove-prompt {
    text-align: center;
}
.remove-prompt button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100px;
    margin: 0 auto;
}
.yes-btn { background: #ff3b30; color: white; }
.no-btn { background: #8e8e93; color: white; }
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        border-radius: 12px;
        margin: 20px auto;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    .conversation-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }
    .conversation-box.casual { order: 1; }
    .conversation-box.meaningful { order: 2; }
    .conversation-box.discovery { order: 3; }
    .conversation-box.spiritual { order: 4; }
    .conversation-box.discovery .move-btn {
        background: #8e8e93;
    }
    .add-person-section {
        position: static;
        transform: none;
        width: auto;
        max-width: none;
        border-top: 0.5px solid #c6c6c8;
        border-radius: 0;
    }
    .content-wrapper {
        padding-bottom: 0;
    }
}
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    animation: notificationSlide 3s ease;
}
@keyframes notificationSlide {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}
.haptic-feedback {
    animation: haptic 0.1s ease;
}
@keyframes haptic {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}
#map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.filter-controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.filter-controls label {
    font-size: 16px;
    color: #3a3a3c;
}
.filter-controls input[type="date"] {
    padding: 8px;
    border: 1px solid #c6c6c8;
    border-radius: 8px;
    font-size: 16px;
}
.filter-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #3a3a3c;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
.filter-controls button:hover {
    background: #2c2c2e;
}