📂 FileMgr
📍
/home/u625410797/domains/thaiyouth.org/public_html/admin/css
✏️ Edit File: /home/u625410797/domains/thaiyouth.org/public_html/admin/css/admin.css
⬅ Kembali
:root { --primary: #1B3A8C; --primary-gradient: linear-gradient(135deg, #1B3A8C 0%, #2D58C7 100%); --accent: #F5C518; --success: #10B981; --danger: #EF4444; --warning: #F59E0B; --info: #3B82F6; --text-main: #1F2937; --text-muted: #6B7280; --bg-app: #F8FAFC; --bg-sidebar: #0F172A; --bg-card: #FFFFFF; --border: #E2E8F0; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --font: 'Noto Sans Thai', sans-serif; --radius: 12px; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); } body { background: var(--bg-app); color: var(--text-main); font-size: 15px; -webkit-font-smoothing: antialiased; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; } /* Buttons */ .btn { padding: 10px 20px; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 4px 14px 0 rgba(27, 58, 140, 0.39); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27, 58, 140, 0.45); } .btn-success { background: var(--success); color: #fff; } .btn-danger { background: var(--danger); color: #fff; } .btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text-main); } .btn-outline:hover { background: #F1F5F9; border-color: #94A3B8; } .btn-full { width: 100%; } .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; } /* Layout */ #admin-app { display: flex; height: 100vh; overflow: hidden; } /* Sidebar */ .sidebar { width: 280px; background: var(--bg-sidebar); color: #fff; display: flex; flex-direction: column; transition: 0.3s; position: relative; z-index: 50; box-shadow: 4px 0 20px rgba(0,0,0,0.1); } .sidebar-header { padding: 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); } .sidebar-header span { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px; } .sidebar-nav { padding: 20px 12px; flex: 1; overflow-y: auto; } .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #94A3B8; border-radius: 10px; margin-bottom: 4px; transition: 0.2s; text-decoration: none; font-weight: 500; } .sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); } .sidebar-nav a.active { background: var(--primary-gradient); color: #fff; box-shadow: 0 4px 12px rgba(27, 58, 140, 0.4); } .sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); } /* Main Content */ .main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; } .top-header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); height: 72px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; sticky: top; z-index: 40; } .top-header h1 { font-size: 1.5rem; font-weight: 700; color: #0F172A; } .content-area { padding: 32px; flex: 1; overflow-y: auto; background: var(--bg-app); } /* Cards */ .card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px; transition: 0.3s; } .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); } .card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #fff; } .card-title { font-weight: 700; font-size: 1.1rem; color: #1E293B; } .user-info { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 12px; border-radius: 12px; transition: 0.2s; } .user-info:hover { background: #F1F5F9; } .user-info span { font-weight: 600; color: #334155; font-size: 14px; } .avatar { width: 40px; height: 40px; background: var(--primary-gradient); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 4px 10px rgba(27, 58, 140, 0.2); } .card-body { padding: 24px; } /* Grid */ .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; } .stat-card { padding: 24px; border-left: 4px solid var(--primary); position: relative; overflow: hidden; } .stat-card::after { content: ''; position: absolute; right: -20px; top: -20px; width: 100px; height: 100px; background: var(--primary); opacity: 0.03; border-radius: 50%; } .stat-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .stat-value { font-size: 2.2rem; font-weight: 800; color: #0F172A; margin-top: 8px; } /* Tables */ .table-wrapper { width: 100%; overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); } table { width: 100%; border-collapse: collapse; background: #fff; } th { background: #F8FAFC; padding: 14px 20px; text-align: left; font-weight: 600; font-size: 12px; color: #64748B; text-transform: uppercase; border-bottom: 1px solid var(--border); } td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: #334155; } tr:last-child td { border-bottom: none; } tr:hover td { background: #F1F5F9; } /* Badges */ .badge { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; } .badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .badge-pending { background: #FEF3C7; color: #D97706; } .badge-success { background: #D1FAE5; color: #059669; } .badge-danger { background: #FEE2E2; color: #DC2626; } .badge-info { background: #DBEAFE; color: #2563EB; } /* Form Styles */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #334155; font-size: 14px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; transition: 0.3s; font-size: 14px; color: #1E293B; background: #fff; } .form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(27, 58, 140, 0.1); } /* Modal */ .modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal { background: #fff; border-radius: 16px; width: 100%; max-width: 700px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); } @keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .modal-body { padding: 24px; overflow-y: auto; flex: 1; } .modal-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; background: #F8FAFC; border-radius: 0 0 16px 16px; } /* Toast */ .toast { position: fixed; bottom: 32px; right: 32px; padding: 16px 24px; border-radius: 12px; color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 2000; animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: none; } @keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } } /* Search Bar */ .search-box { position: relative; width: 300px; } .search-box input { width: 100%; padding: 10px 16px 10px 40px; border-radius: 10px; border: 1.5px solid var(--border); transition: 0.3s; } .search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); } .admin-lang-switch { display: flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 12px; } .admin-lang-switch button { border: none; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; color: #64748B; transition: 0.2s; } .admin-lang-switch button.active { background: #fff; color: var(--primary); shadow: var(--shadow-sm); }
💾 Simpan File
Batal
⬅ Naik ke admin
1 item
Nama
Tipe
Ukuran
Diubah
Aksi
🎨
admin.css
css
8.4 KB
2026-05-08 04:46
✏️ Edit
👁️ View
🗑 Hapus