/* Styles pour le composant FolderModal */ .folder-container { padding: 0; width: 100%; max-width: 900px; margin: 0 auto; } .folder-form { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; } .form-section { background-color: rgba(255, 255, 255, 0.05); border-radius: 0.5rem; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .form-section:hover { background-color: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .section-title { margin: 0 0 1rem 0; padding-bottom: 0.75rem; font-size: 1rem; font-weight: 600; color: var(--primary-color); border-bottom: 1px solid rgba(255, 255, 255, 0.1); letter-spacing: 0.5px; text-transform: uppercase; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; } .form-field { display: flex; flex-direction: column; margin-bottom: 1rem; position: relative; } .form-field:last-child { margin-bottom: 0; } .form-field label { margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-100); display: flex; align-items: center; } .required { color: #f44336; margin-left: 0.25rem; } .optional { color: #90a4ae; font-size: 0.8rem; font-weight: 400; font-style: italic; } .form-field input, .form-field select, .form-field textarea { background-color: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.375rem; padding: 0.75rem 1rem; font-size: 0.95rem; color: var(--text-100); transition: all 0.3s ease; width: 100%; } .form-field textarea { resize: vertical; min-height: 80px; font-family: inherit; } .form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-position: right 1rem center; background-repeat: no-repeat; padding-right: 2.5rem; } .form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary-color); background-color: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.25); } .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255, 255, 255, 0.3); font-style: italic; } .form-field input:disabled, .form-field select:disabled, .form-field textarea:disabled { opacity: 0.7; cursor: not-allowed; } /* Tags styling */ .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; } .tag-item { background-color: rgba(103, 58, 183, 0.2); color: var(--text-100); border-radius: 0.25rem; padding: 0.4rem 0.75rem; font-size: 0.85rem; display: flex; align-items: center; transition: all 0.2s ease; } .tag-item:hover { background-color: rgba(103, 58, 183, 0.3); } .tag-remove { background: none; border: none; color: var(--text-100); margin-left: 0.5rem; font-size: 1.2rem; line-height: 0.8; cursor: pointer; padding: 0.1rem 0.3rem; border-radius: 50%; } .tag-remove:hover { background-color: rgba(255, 255, 255, 0.1); color: #f44336; } .tag-input-container { display: flex; gap: 0.5rem; } .tag-input-container input { flex: 1; } .btn-add-tag { background: rgba(103, 58, 183, 0.3); color: var(--text-100); border: none; border-radius: 0.375rem; padding: 0 1rem; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; } .btn-add-tag:hover { background: rgba(103, 58, 183, 0.5); } /* Form actions */ .form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); } .btn-cancel { background: transparent; color: var(--text-100); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0.375rem; padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .btn-cancel:hover { background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); } .btn-submit { background: var(--primary-color); color: white; border: none; border-radius: 0.375rem; padding: 0.75rem 2rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px rgba(103, 58, 183, 0.3); transition: all 0.3s ease; position: relative; overflow: hidden; } .btn-submit::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent); transform: translateX(-100%); transition: all 0.6s ease; } .btn-submit:hover { background: var(--primary-color-dark); box-shadow: 0 4px 10px rgba(103, 58, 183, 0.4); transform: translateY(-2px); } .btn-submit:hover::before { transform: translateX(100%); } .btn-submit:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(103, 58, 183, 0.2); } /* Animation d'un folder qui vient d'être créé */ @keyframes highlight-new { 0% { box-shadow: 0 0 0 2px rgba(103, 58, 183, 0.8); } 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } } .folder-new { animation: highlight-new 2s ease; } /* Styles adaptatifs pour les écrans plus petits */ @media (max-width: 768px) { .form-row { grid-template-columns: 1fr; gap: 0.5rem; } .form-actions { flex-direction: column; } .btn-cancel, .btn-submit { width: 100%; } }