/* 전체 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #3f51b5;
}

/* 메인 컨테이너 스타일 */
.app-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 과목 섹션 스타일 */
.subject-section {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.subject-input-container {
    display: flex;
    margin-bottom: 20px;
}

#subject-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#add-subject-btn {
    padding: 10px 15px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#add-subject-btn:hover {
    background-color: #303f9f;
}

.subject-list-container h3 {
    margin-bottom: 10px;
    color: #555;
}

#subject-list {
    list-style: none;
}

#subject-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#subject-list li:hover {
    background-color: #eee;
}

#subject-list li.selected {
    background-color: #e8eaf6;
    border-left: 4px solid #3f51b5;
}

.delete-subject {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.delete-subject:hover {
    background-color: #d32f2f;
}

/* 노트 섹션 스타일 */
.note-section {
    flex: 2;
    min-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#current-subject {
    font-weight: bold;
    color: #3f51b5;
}

.week-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

#week-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.note-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#note-content {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
}

.note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload label {
    font-size: 14px;
    color: #555;
}

#note-file-input {
    font-size: 14px;
}

#save-note-btn {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#save-note-btn:hover {
    background-color: #388e3c;
}

#save-note-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.save-status {
    color: #4caf50;
    font-size: 14px;
}

/* 푸터 스타일 */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    color: #777;
    font-size: 14px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .subject-section,
    .note-section {
        min-width: 100%;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}