body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #37352f;
    background-color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 20px 20px; /* Updated padding to account for fixed nav */
}
.rule-setting-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(46,170,220,0.07);
    color: #37352f;
}

.rule-setting-main {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.habit-list-panel, .habit-combo-panel {
    flex: 1;
    background: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(46,170,220,0.04);
}

.habit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.habit-list li {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the name */
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 16px;
    cursor: pointer; /* Indicate clickable */
    transition: background 0.2s, color 0.2s;
}

.habit-list li.active {
    background: #2eaadc;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
}

.habit-name {
    width: 100%;
    text-align: center;
}

.add-to-combo {
    background: #2eaadc;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}

.add-to-combo:hover {
    background: #1d8bb8;
    transform: scale(1.05);
}

.new-habit-btn {
    display: inline-block;
    margin-top: 10px;
    color: #2eaadc;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.2s;
}

.new-habit-btn:hover {
    color: #1d8bb8;
    text-decoration: underline;
}

.frequency-section {
    margin-bottom: 24px;
    background: #f1f3f4;
    padding: 16px;
    border-radius: 10px;
}

.frequency-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 500;
}

#custom-freq {
    width: 80px;
    margin-left: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1em;
    background: #fff;
    color: #37352f;
}

.save-rule-btn {
    background: #2eaadc;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.save-rule-btn:hover {
    background: #1d8bb8;
    transform: scale(1.05);
}