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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}


.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.activities-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #722F37;
}

.category-section {
    margin-bottom: 40px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 3px solid #722F37;
    padding-bottom: 10px;
}

.activity-group {
    margin-bottom: 30px;
}

.activity-group h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.add-activity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #722F37;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    min-height: 50px;
}

.add-activity-btn:hover {
    background: #fff5f5;
    border-color: #722F37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.4);
}

.add-activity-btn span {
    font-size: 1.5rem;
    color: #722F37;
    font-weight: bold;
    user-select: none;
}

.add-activity-btn:hover span {
    color: #722F37;
    transform: scale(1.2);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.activity-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.activity-card:hover {
    background: #f5f5f5;
    border-color: #722F37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

.activity-card input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #722F37;
}

.activity-card input[type="checkbox"]:checked + span {
    color: #722F37;
    font-weight: 600;
}

.activity-card:has(input:checked) {
    background: #fff5f5;
    border-color: #722F37;
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.4);
}

.activity-card span {
    flex: 1;
    font-size: 0.95rem;
    color: #1a1a1a;
    user-select: none;
}

.plan-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.plan-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #722F37;
}

.plan-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.selected-count {
    background: #722F37;
    color: #ffffff;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    border: 2px solid #1a1a1a;
}

.selected-count span {
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
}

.plan-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    opacity: 0.8;
}

.plan-item {
    background: #f5f5f5;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #722F37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.plan-item-content {
    flex: 1;
}

.plan-item-category {
    font-size: 0.75rem;
    color: #722F37;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.plan-item-name {
    font-size: 0.9rem;
    color: #1a1a1a;
}

.remove-btn {
    background: transparent;
    color: #666;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    font-weight: 300;
    width: auto;
    height: auto;
}

.remove-btn:hover {
    color: #722F37;
    transform: scale(1.1);
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #722F37;
    color: #ffffff;
    border: 2px solid #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.5);
    background: #8B4A5A;
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Scrollbar Styling */
.plan-list::-webkit-scrollbar {
    width: 8px;
}

.plan-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.plan-list::-webkit-scrollbar-thumb {
    background: #722F37;
    border-radius: 10px;
}

.plan-list::-webkit-scrollbar-thumb:hover {
    background: #8B4A5A;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .plan-section {
        position: static;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid #722F37;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #1a1a1a;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: all 0.2s ease;
}

.close:hover {
    color: #722F37;
    transform: scale(1.2);
}

.modal-content h2 {
    color: #1a1a1a;
    margin-bottom: 25px;
    margin-right: 30px;
    font-size: 1.8rem;
    text-align: center;
}

#passwordModal .modal-content h2 {
    margin-bottom: 30px;
}

.password-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-input-wrapper {
    width: 100%;
    margin-bottom: 25px;
}

.password-input-wrapper input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #fafafa;
    color: #1a1a1a;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 500;
    box-sizing: border-box;
}

.password-input-wrapper input::placeholder {
    color: #999;
    opacity: 0.5;
    letter-spacing: 0;
    font-weight: 400;
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #722F37;
    box-shadow: 0 0 0 4px rgba(114, 47, 55, 0.15);
    background: #ffffff;
    transform: translateY(-1px);
}

.password-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.password-actions .btn {
    min-width: 200px;
    padding: 14px 30px;
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #1a1a1a;
    transition: all 0.3s ease;
}


.form-group input::placeholder {
    color: #999;
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #722F37;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.15);
    background: #ffffff;
}

.form-group select option {
    background: #ffffff;
    color: #1a1a1a;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.error-message {
    color: #722F37;
    font-size: 0.9rem;
    margin-top: 12px;
    display: none;
    text-align: center;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #722F37;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message.show {
    display: block;
}

#passwordModal .form-actions {
    margin-top: 30px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activities-section {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 20% auto;
    }
}

