/* Nhật Ký Phối Đồ - Styles Đơn Giản */

:root {
    --primary-color: #d1d5db;
    --secondary-color: #e5e7eb;
    --accent-color: #f3f4f6;
    --text-color: #374151;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fef7f0;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header đơn giản */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #8b5a3c;
    margin-bottom: 5px;
}

.subtitle {
    color: #a0785a;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

/* Daily Outfit Section */
.daily-outfit h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #8b5a3c;
    font-size: 1.2rem;
}

/* Photo Upload */
.photo-upload-section {
    margin-bottom: 30px;
}

.photo-upload-area {
    position: relative;
}

.photo-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    background: #fffbeb;
    transition: var(--transition);
    cursor: pointer;
}

.photo-drop-zone:hover {
    border-color: #d1d5db;
    background: #fef3c7;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.photo-drop-zone p {
    color: #8b5a3c;
    margin-bottom: 5px;
}

.photo-drop-zone small {
    color: #a0785a;
    font-size: 0.8rem;
}

.photo-preview {
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Clothing Selection */
.clothing-selection {
    margin-bottom: 25px;
}

.clothing-group {
    margin-bottom: 20px;
}

.clothing-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #8b5a3c;
}

.tag-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: #6b7280;
}

.tag-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.tag-btn.selected {
    background: #8b5a3c;
    color: white;
    border-color: #8b5a3c;
}

.clothing-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: #fffbeb;
    transition: var(--transition);
}

.clothing-input:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: 0 0 0 2px rgba(209, 213, 219, 0.2);
}

/* Notes Section */
.notes-section {
    margin-bottom: 25px;
}

.notes-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #8b5a3c;
}

.notes-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background: #fffbeb;
    resize: vertical;
}

.notes-section textarea:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: 0 0 0 2px rgba(209, 213, 219, 0.2);
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #d1d5db;
    color: #374151;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #9ca3af;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    color: #8b5a3c;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* History Section */
.history-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.history-header h3 {
    color: #8b5a3c;
    margin: 0;
}

.history-controls {
    background: #fffbeb;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #f3f4f6;
}

.date-selector, .month-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.date-selector label, .month-selector label {
    font-weight: 500;
    color: #8b5a3c;
    min-width: 80px;
}

.date-input, .month-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.9rem;
}

.view-all {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: #fffbeb;
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 3px solid #d1d5db;
}

.history-date {
    font-weight: 600;
    color: #8b5a3c;
    margin-bottom: 10px;
}

.history-outfit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.history-item-name {
    font-size: 0.9rem;
    color: #6b7280;
}

.history-notes {
    margin-top: 8px;
    font-style: italic;
    color: #a0785a;
    font-size: 0.85rem;
}

/* Modal & Toast */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
    max-width: 300px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #d1d5db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d1d5db;
    color: #374151;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    transform: translateX(400px);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 15px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}