diff --git a/frontend/styles.css b/frontend/styles.css index eab273f..edd6559 100644 --- a/frontend/styles.css +++ b/frontend/styles.css @@ -503,6 +503,21 @@ dialog::backdrop { background: rgba(0,0,0,0.6); } font-size: 1.2rem; } +/* ---------------- Admin Animations ---------------- */ +@keyframes slideUpFade { + 0% { opacity: 0; transform: translateY(12px); } + 100% { opacity: 1; transform: translateY(0); } +} +@keyframes fadeInScale { + 0% { opacity: 0; transform: scale(0.97); } + 100% { opacity: 1; transform: scale(1); } +} + +/* Apply staggered animation to panels and login sections */ +.admin-login, .tab-panel { + animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; +} + /* ---------------- Admin ---------------- */ .admin-page { max-width: 1100px; @@ -513,51 +528,68 @@ dialog::backdrop { background: rgba(0,0,0,0.6); } .admin-login { max-width: 420px; margin: 5rem auto; - padding: 2rem; + padding: 2.5rem 2rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); + box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); + transition: transform 0.3s ease, box-shadow 0.3s ease; +} +.admin-login:hover { + box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); } .admin-bar { display: flex; justify-content: space-between; align-items: center; - padding: 1rem 0; - margin-bottom: 1.5rem; + padding: 1.2rem 0; + margin-bottom: 2rem; border-bottom: 1px solid var(--line); } -.admin-bar h1 { margin: 0; font-size: 1.4rem; } +.admin-bar h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; } .admin-grid { display: grid; grid-template-columns: 1fr 1fr; - gap: 1.5rem; + gap: 1.8rem; } .panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); - padding: 1.4rem; + padding: 1.8rem; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); + transition: box-shadow 0.3s ease, border-color 0.3s ease; +} +.panel:hover { + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); + border-color: var(--accent); } -.panel h2 { font-size: 1.1rem; font-family: "Inter", sans-serif; margin-bottom: 1rem; } +.panel h2 { font-size: 1.15rem; font-family: "Inter", sans-serif; margin-bottom: 1.2rem; } -table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } +table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } table.admin-table th, table.admin-table td { text-align: left; - padding: 0.55rem 0.5rem; + padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--line); + transition: background-color 0.2s ease; +} +table.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 0.5rem; } +table.admin-table tbody tr { transition: transform 0.2s ease, background-color 0.2s ease; } +table.admin-table tbody tr:hover { + background: rgba(255,255,255,0.03); + transform: translateX(4px); } -table.admin-table th { color: var(--muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; } -table.admin-table tr:hover { background: rgba(255,255,255,0.02); } -.admin-form { display: grid; gap: 0.7rem; } -.admin-form label { display: grid; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); } -.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; } -.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.7rem; } +.admin-form { display: grid; gap: 1rem; } +.admin-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); transition: color 0.2s; } +.admin-form label:focus-within { color: var(--accent-strong); } +.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } +.admin-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; } .admin-photo-preview { width: 100%; @@ -566,41 +598,76 @@ table.admin-table tr:hover { background: rgba(255,255,255,0.02); } border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 0.5rem; + transition: border-color 0.3s ease, filter 0.3s ease; +} +.admin-photo-preview:hover { + filter: brightness(1.1); } /* Admin tabs */ -.admin-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; flex-wrap: wrap; } +.admin-tabs { + display: flex; gap: 0.4rem; + margin-bottom: 1.5rem; + border-bottom: 2px solid var(--line); + padding-bottom: 0px; + flex-wrap: wrap; +} .admin-tabs .tab { background: transparent; border: none; color: var(--muted); - padding: 0.6rem 1rem; border-radius: 10px 10px 0 0; + padding: 0.8rem 1.4rem; + border-radius: 12px 12px 0 0; font-family: "Inter", sans-serif; font-weight: 500; cursor: pointer; - display: inline-flex; align-items: center; gap: 0.4rem; - border-bottom: 2px solid transparent; + display: inline-flex; align-items: center; gap: 0.5rem; + border-bottom: 3px solid transparent; + transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; + margin-bottom: -2px; /* Overlap border */ +} +.admin-tabs .tab:hover { + color: var(--text); + background: rgba(255,255,255,0.03); +} +.admin-tabs .tab.active { + color: var(--accent-strong); + border-bottom-color: var(--accent); + background: rgba(196, 138, 66, 0.05); } -.admin-tabs .tab:hover { color: var(--fg); } -.admin-tabs .tab.active { color: var(--accent); border-bottom-color: var(--accent); } .tab-badge { - background: var(--bg-elev); color: var(--fg); - font-size: 0.7rem; padding: 0.1rem 0.5rem; - border-radius: 999px; min-width: 1.3rem; text-align: center; + background: var(--line); color: var(--text); + font-size: 0.75rem; padding: 0.15rem 0.6rem; + border-radius: 999px; min-width: 1.5rem; text-align: center; + transition: background-color 0.3s ease, color 0.3s ease; } -.admin-tabs .tab.active .tab-badge { background: var(--accent); color: #111; } +.admin-tabs .tab.active .tab-badge { background: var(--accent); color: #111; font-weight: 600; } -.sub-tabs { display: inline-flex; gap: 0.3rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem; } +.sub-tabs { + display: inline-flex; gap: 0.3rem; + background: rgba(255,255,255,0.03); + border: 1px solid var(--line); + border-radius: 999px; + padding: 0.25rem; +} .sub-tab { background: transparent; border: none; color: var(--muted); - padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer; - font-size: 0.82rem; font-family: "Inter", sans-serif; + padding: 0.4rem 1.1rem; border-radius: 999px; cursor: pointer; + font-size: 0.85rem; font-family: "Inter", sans-serif; + transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; } -.sub-tab.active { background: var(--accent); color: #111; font-weight: 600; } +.sub-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); } +.sub-tab.active { background: var(--accent); color: #111; font-weight: 600; transform: scale(1.02); box-shadow: 0 2px 8px rgba(0,0,0,0.3); } /* Pills */ -.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line); } -.pill-new { background: rgba(200, 150, 80, 0.15); color: #e4b676; border-color: rgba(200, 150, 80, 0.4); } -.pill-qualified { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border-color: rgba(90, 180, 120, 0.4); } -.pill-disqualified { background: rgba(180, 90, 90, 0.15); color: #d48a8a; border-color: rgba(180, 90, 90, 0.4); } -.pill-active { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border-color: rgba(90, 180, 120, 0.4); } -.pill-inactive { background: rgba(160, 160, 160, 0.12); color: var(--muted); } +.pill { + display: inline-block; padding: 0.2rem 0.6rem; + border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; + letter-spacing: 0.06em; font-weight: 600; + transition: filter 0.2s ease, transform 0.2s ease; +} +.pill:hover { filter: brightness(1.1); transform: translateY(-1px); } +.pill-new { background: rgba(200, 150, 80, 0.15); color: #e4b676; border: 1px solid rgba(200, 150, 80, 0.3); } +.pill-qualified { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border: 1px solid rgba(90, 180, 120, 0.3); } +.pill-disqualified { background: rgba(180, 90, 90, 0.15); color: #d48a8a; border: 1px solid rgba(180, 90, 90, 0.3); } +.pill-active { background: rgba(90, 180, 120, 0.15); color: #6ecf96; border: 1px solid rgba(90, 180, 120, 0.3); } +.pill-inactive { background: rgba(160, 160, 160, 0.12); color: var(--muted); border: 1px solid transparent; } .muted { color: var(--muted); } @@ -611,22 +678,44 @@ table.admin-table tr:hover { background: rgba(255,255,255,0.02); } /* Dialog */ dialog#leadDialog { border: 1px solid var(--line); border-radius: var(--radius); - background: var(--bg-card); color: var(--fg); - padding: 0; max-width: 560px; width: 92%; + background: var(--bg-card); color: var(--text); + padding: 0; max-width: 580px; width: 92%; + box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4); + transition: opacity 0.3s ease, transform 0.3s ease; } -dialog#leadDialog::backdrop { background: rgba(0,0,0,0.6); } +dialog#leadDialog[open] { + animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; +} +dialog#leadDialog::backdrop { + background: rgba(0,0,0,0.7); + backdrop-filter: blur(4px); + animation: fadeIn 0.3s ease forwards; +} +@keyframes fadeIn { + 0% { opacity: 0; } + 100% { opacity: 1; } +} + .dialog-head { display: flex; justify-content: space-between; align-items: center; - padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); + padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--line); + background: rgba(255,255,255,0.02); } .dialog-close { background: transparent; border: none; color: var(--muted); - font-size: 1.4rem; cursor: pointer; line-height: 1; + font-size: 1.6rem; cursor: pointer; line-height: 1; + width: 2rem; height: 2rem; + display: grid; place-items: center; border-radius: 8px; + transition: background-color 0.2s ease, color 0.2s ease; } -.dialog-body { padding: 1.2rem; } -dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 0.4rem 1rem; margin: 0; font-size: 0.88rem; } -dl.kv dt { color: var(--muted); } -dl.kv dd { margin: 0; } +.dialog-close:hover { + background: rgba(255,255,255,0.1); + color: var(--text); +} +.dialog-body { padding: 1.6rem; } +dl.kv { display: grid; grid-template-columns: 120px 1fr; gap: 0.6rem 1rem; margin: 0; font-size: 0.9rem; } +dl.kv dt { color: var(--muted); font-weight: 500; } +dl.kv dd { margin: 0; color: var(--text); } /* ---------------- Responsive ---------------- */ @media (max-width: 900px) {