/* Task Title and Memo in Calendar */
.calendar-task .task-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.calendar-task .task-memo {
    font-size: 0.65rem;
    opacity: 0.8;
    font-style: normal;
    /* Cleaner than italic */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

/* Enhanced Form Styling */
.task-modal-content {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-panel);
    /* Ensure it matches theme */
}

/* Scrollbar matches style.css */
.task-modal-content::-webkit-scrollbar {
    width: 6px;
}

.task-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border-highlight);
    border-radius: 3px;
}

.form-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-element);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label i {
    font-size: 0.75rem;
    opacity: 0.7;
    width: 14px;
    text-align: center;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    background: var(--bg-app);
    /* Darker input background */
    border: 1px solid var(--border-highlight);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    background: var(--bg-app);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
}

.form-group textarea {
    width: 100%;
    background: var(--bg-app);
    border: 1px solid var(--border-highlight);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.2s;
    min-height: 80px;
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

/* GoodNotes Link Icon in Calendar */
.calendar-task.has-link {
    position: relative;
    padding-right: 14px;
}

.calendar-task.has-link::after {
    content: '\f0c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 4px;
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Sidebar Memo Section Styles */
.sidebar-section.memo-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.memo-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.memo-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.memo-header i {
    color: var(--accent-primary);
}

.goodnotes-group .memo-header i {
    color: #f59e0b;
    /* Amber */
}

/* Updated GoodNotes Styles */
.goodnotes-input-container {
    display: flex;
    gap: 0.5rem;
}

.goodnotes-link-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-element);
    border: 1px solid rgba(245, 158, 11, 0.3);
    /* Amber border */
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.goodnotes-link-container:hover {
    background: var(--bg-hover);
    border-color: #f59e0b;
}

.goodnotes-link-item {
    flex: 1;
    color: #f59e0b;
    /* Amber */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goodnotes-link-item:hover {
    text-decoration: underline;
}

.icon-btn-small {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.icon-btn-small:hover {
    background: var(--bg-element);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.glass-btn-icon {
    width: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

#month-goodnotes-input {
    flex: 1;
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

#month-goodnotes-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: var(--bg-hover);
}

#btn-visit-goodnotes {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    border-radius: var(--radius-sm);
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

#btn-visit-goodnotes:hover {
    background: rgba(245, 158, 11, 0.2);
}

#btn-visit-goodnotes:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}

#month-memo-textarea {
    width: 100%;
    height: 150px;
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.2s;
}

#month-memo-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}