/* assets/css/style.css - Premium Modern Design */ :root { --primary: #2563eb; --primary-hover: #1d4ed8; --secondary: #10b981; --bg-color: #f3f4f6; --surface: #ffffff; --text-main: #1f2937; --text-muted: #6b7280; --border: #e5e7eb; --danger: #ef4444; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --glass-bg: rgba(255, 255, 255, 0.7); --glass-border: rgba(255, 255, 255, 0.3); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Sarabun', 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; display: flex; min-height: 100vh; } /* Glassmorphism Utilities */ .glass { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); box-shadow: var(--shadow-md); } /* Layout */ .app-container { display: flex; width: 100%; } .sidebar { width: 280px; background-color: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); z-index: 10; transition: all 0.3s ease; } .sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); text-align: center; } .sidebar-header h1 { font-size: 1.25rem; color: var(--primary); font-weight: 700; } .sidebar-menu { flex: 1; padding: 1rem 0; overflow-y: auto; } .sidebar-menu ul { list-style: none; } .sidebar-menu li a { display: flex; align-items: center; padding: 0.75rem 1.5rem; color: var(--text-main); text-decoration: none; transition: all 0.2s ease; border-left: 3px solid transparent; } .sidebar-menu li a:hover, .sidebar-menu li.active > a { background-color: rgba(37, 99, 235, 0.05); color: var(--primary); border-left-color: var(--primary); } .sidebar-menu .nav-header { padding: 0.5rem 1.5rem; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 1rem; } .sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); } .main-content { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; } .topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; box-shadow: var(--shadow-sm); } .content-wrapper { padding: 2rem; flex: 1; overflow-y: auto; } /* Cards */ .card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-md); padding: 1.5rem; margin-bottom: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .card-title { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-main); font-weight: 600; display: flex; justify-content: space-between; align-items: center; } /* Grid for Dashboard */ .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } .stat-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px dashed var(--border); } .stat-item:last-child { border-bottom: none; } .stat-value { font-weight: 700; color: var(--primary); } /* Forms */ .form-group { margin-bottom: 1rem; } .form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; transition: all 0.2s ease; } .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .btn { display: inline-block; font-family: inherit; font-weight: 600; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; border: 1px solid transparent; padding: 0.75rem 1.5rem; font-size: 1rem; line-height: 1.5; border-radius: 8px; transition: all 0.2s ease; cursor: pointer; text-decoration: none; } .btn-primary { color: #fff; background-color: var(--primary); } .btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); } .btn-block { display: block; width: 100%; } /* Login Page specific */ .login-body { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%); min-height: 100vh; } .login-wrapper { width: 100%; max-width: 400px; padding: 2rem; border-radius: 16px; text-align: center; } .login-logo { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; } .login-subtitle { color: var(--text-muted); margin-bottom: 2rem; } /* Animations */ @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .animate-slide-down { animation: slideDown 0.5s ease forwards; } .animate-fade-in { animation: fadeIn 0.5s ease forwards; } /* Utilities */ .text-danger { color: var(--danger); } .text-center { text-align: center; } .mt-4 { margin-top: 1rem; } .mb-4 { margin-bottom: 1rem; }