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

body {
    font-family: Arial, sans-serif;
    font-size: 13px;
    background: #f5f5f5;
    color: #333;
}

.memos-container {
    height: 100vh;
    overflow: hidden;
    background: white;
}

.memos-layout {
    display: flex;
    height: 100%;
}

/* Left Panel - Add New Memo */
.left-panel {
    width: 320px;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

.panel-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}

/* Form Styles */
.add-memo-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#memo-text {
    width: 100%;
    height: 120px;
    padding: 10px;
    padding-right: 95px; /* Make room for both tag buttons */
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.insert-tag-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

.insert-tag-btn:hover {
    opacity: 0.85;
}

.char-counter {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: -10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.form-group input[type="text"],
.form-group select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.date-input-wrapper {
    display: flex;
    gap: 5px;
}

.date-input-wrapper input {
    flex: 1;
}

.calendar-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-btn:hover {
    background: #e8e8e8;
}

.date-input {
    width: 100%;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Add Memo Button */
.add-memo-btn {
    padding: 10px 20px;
    background: #5cb85c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

.add-memo-btn:hover {
    background: #4cae4c;
}

/* Right Panel - Memos List */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: white;
}

.show-hide {
    font-size: 13px;
    color: #4a90e2;
}

.memos-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Memo Item */
.memo-item {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #000;
}

.memo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: bold;
}

.memo-date {
    min-width: 80px;
}

.memo-audience {
    flex: 1;
}

.memo-author {
    color: #333;
}

.memo-checkbox {
    margin: 0;
    cursor: pointer;
}

.memo-checkbox input {
    cursor: pointer;
}

.delete-link {
    color: #000;
    text-decoration: underline;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
}

.delete-link:hover {
    color: #d9534f;
}

.memo-body {
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    padding-left: 0;
}

/* Scrollbar Styling */
.left-panel::-webkit-scrollbar,
.memos-list::-webkit-scrollbar {
    width: 8px;
}

.left-panel::-webkit-scrollbar-track,
.memos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.left-panel::-webkit-scrollbar-thumb,
.memos-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.left-panel::-webkit-scrollbar-thumb:hover,
.memos-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 1024px) {
    .memos-layout {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        max-height: 50vh;
    }
}
