/* 夢境記錄樣式 */

.dream-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dream-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.dream-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 40px;
    font-style: italic;
}

/* 表單容器 */
.dream-form-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.dream-form-container h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.dream-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 夢境列表 */
.dream-list-container {
    margin-top: 40px;
}

.dream-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dream-list-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin: 0;
}

.dream-search {
    display: flex;
    gap: 10px;
}

.dream-search input,
.dream-search select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.dream-search input {
    width: 200px;
}

.dream-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dream-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.dream-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dream-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dream-item-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.dream-delete-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 5px;
}

.dream-delete-btn:hover {
    opacity: 1;
}

.dream-item-title {
    color: #2d3748;
    font-size: 1.3rem;
    margin: 10px 0;
    font-weight: 600;
}

.dream-item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dream-emotion-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.emotion-平靜 {
    background: #e3f2fd;
    color: #1976d2;
}

.emotion-快樂 {
    background: #fff3e0;
    color: #f57c00;
}

.emotion-恐懼 {
    background: #ffebee;
    color: #c62828;
}

.emotion-悲傷 {
    background: #f3e5f5;
    color: #7b1fa2;
}

.emotion-興奮 {
    background: #fff9c4;
    color: #f9a825;
}

.emotion-困惑 {
    background: #eceff1;
    color: #455a64;
}

.emotion-其他 {
    background: #f5f5f5;
    color: #616161;
}

.dream-clarity {
    color: #666;
    font-size: 0.85rem;
}

.dream-item-content {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.dream-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.dream-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.dream-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.dream-empty-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #bbb;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .dream-container {
        margin: 20px;
        padding: 20px;
    }
    
    .dream-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dream-list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dream-search {
        flex-direction: column;
    }
    
    .dream-search input {
        width: 100%;
    }
}

