:root { --primary: #4F46E5; /* Indigo */ --primary-hover: #4338ca; --bg: #F3F4F6; --surface: #FFFFFF; --text: #1F2937; --text-light: #6B7280; --border: #E5E7EB; --danger: #EF4444; --success: #10B981; --radius: 12px; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; } body { background-color: var(--bg); color: var(--text); height: 100vh; display: flex; flex-direction: column; } /* UTILITAIRES */ .hidden { display: none !important; } .view { width: 100%; height: 100%; } .view.active { display: flex; } /* AUTH VIEW */ #auth-view { justify-content: center; align-items: center; } .auth-card { background: var(--surface); padding: 2rem; width: 100%; max-width: 400px; border-radius: var(--radius); box-shadow: var(--shadow); } .auth-header { text-align: center; margin-bottom: 2rem; } .logo-icon { font-size: 3rem; margin-bottom: 0.5rem; } .auth-header h1 { font-size: 1.5rem; font-weight: 600; } .auth-header p { color: var(--text-light); font-size: 0.9rem; } .tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; } .tab-btn { flex: 1; background: none; border: none; padding: 10px; cursor: pointer; font-weight: 600; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; } .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); } /* FORMS */ .input-group { margin-bottom: 1rem; } .input-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--text); } .input-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; } .input-group input:focus { outline: none; border-color: var(--primary); } .input-group small { display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-light); } button { cursor: pointer; transition: all 0.2s; } .btn-primary { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; } .btn-primary:hover { background: var(--primary-hover); } .btn-secondary { width: 100%; padding: 0.8rem; background: var(--text); color: white; border: none; border-radius: 8px; font-weight: 600; } /* DASHBOARD */ #dashboard-view { flex-direction: column; } .navbar { background: var(--surface); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); } .nav-brand { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px;} .nav-actions { display: flex; gap: 15px; align-items: center; font-size: 0.9rem; } .btn-logout { background: transparent; border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 6px; color: var(--text-light); } .btn-logout:hover { border-color: var(--danger); color: var(--danger); } .container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; width: 100%; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .dashboard-header .btn-primary { width: auto; padding: 0.6rem 1.2rem; } /* GRID ENTRIES */ .entries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } .entry-card { background: var(--surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; } .entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; } .card-title { font-weight: 600; font-size: 1.1rem; } .card-url { font-size: 0.8rem; color: var(--primary); text-decoration: none; } .card-body { margin-top: 1rem; } .field-row { margin-bottom: 0.8rem; } .field-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; } .field-value-group { display: flex; gap: 8px; align-items: center; } .field-value { font-family: 'Courier New', monospace; background: #f9fafb; padding: 4px 8px; border-radius: 4px; border: 1px solid #e5e7eb; width: 100%; overflow: hidden; text-overflow: ellipsis; } .btn-icon { background: none; border: none; color: var(--text-light); padding: 4px; border-radius: 4px; } .btn-icon:hover { background: #e5e7eb; color: var(--primary); } /* MODAL */ .modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal { background: var(--surface); padding: 2rem; border-radius: var(--radius); width: 100%; max-width: 500px; animation: slideUp 0.3s ease; } .modal-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; } .btn-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; } .modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; } .btn-text { background: none; border: none; color: var(--text-light); } /* TOAST */ #toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; } .toast { background: #333; color: white; padding: 12px 24px; border-radius: 8px; margin-top: 10px; animation: fadeIn 0.3s; font-size: 0.9rem; } .toast.success { background: var(--success); } .toast.error { background: var(--danger); } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }