Untitled
Anonymous
plain_text
02/25/2026 7:17 AM
15.0 KB
10
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HR Management System</title>
<style>
:root {
--primary: #4f46e5;
--primary-dark: #4338ca;
--secondary: #818cf8;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--dark: #1f2937;
--light: #f9fafb;
--gray: #6b7280;
--border: #e5e7eb;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: var(--light);
min-height: 100vh;
display: flex;
}
/* Sidebar */
.sidebar {
width: 260px;
background: var(--dark);
color: white;
padding: 0;
position: fixed;
height: 100vh;
overflow-y: auto;
transition: all 0.3s;
z-index: 100;
}
.sidebar-header {
padding: 25px 20px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
text-align: center;
}
.sidebar-header h2 {
font-size: 1.5rem;
font-weight: 700;
}
.sidebar-header p {
font-size: 0.85rem;
opacity: 0.9;
margin-top: 5px;
}
.nav-menu {
padding: 20px 0;
}
.nav-item {
padding: 15px 25px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.3s;
border-left: 3px solid transparent;
color: #d1d5db;
}
.nav-item:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.nav-item.active {
background: rgba(79, 70, 229, 0.2);
border-left-color: var(--primary);
color: white;
}
.nav-item svg {
width: 20px;
height: 20px;
}
/* Main Content */
.main-content {
margin-left: 260px;
flex: 1;
padding: 30px;
min-height: 100vh;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
}
.header h1 {
color: var(--dark);
font-size: 1.75rem;
}
.header-actions {
display: flex;
gap: 15px;
align-items: center;
}
.search-box {
position: relative;
}
.search-box input {
padding: 10px 15px 10px 40px;
border: 1px solid var(--border);
border-radius: 8px;
width: 250px;
font-size: 0.9rem;
transition: all 0.3s;
}
.search-box input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.search-box svg {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
color: var(--gray);
}
/* Buttons */
.btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
}
.btn-success {
background: var(--success);
color: white;
}
.btn-success:hover {
background: #059669;
}
.btn-danger {
background: var(--danger);
color: white;
}
.btn-danger:hover {
background: #dc2626;
}
.btn-secondary {
background: var(--border);
color: var(--dark);
}
.btn-secondary:hover {
background: #d1d5db;
}
.btn-sm {
padding: 6px 12px;
font-size: 0.8rem;
}
/* Dashboard Stats */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: var(--shadow);
display: flex;
align-items: center;
gap: 20px;
transition: transform 0.3s;
}
.stat-card:hover {
transform: translateY(-3px);
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.stat-icon.blue { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.stat-info h3 {
font-size: 1.75rem;
color: var(--dark);
}
.stat-info p {
color: var(--gray);
font-size: 0.9rem;
}
/* Department Cards */
.dept-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.dept-card {
background: white;
border-radius: 12px;
box-shadow: var(--shadow);
overflow: hidden;
cursor: pointer;
transition: all 0.3s;
}
.dept-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
.dept-header {
padding: 20px;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
}
.dept-header.engineering { background: linear-gradient(135deg, #667eea, #764ba2); }
.dept-header.marketing { background: linear-gradient(135deg, #f093fb, #f5576c); }
.dept-header.sales { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.dept-header.hr { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.dept-header.finance { background: linear-gradient(135deg, #fa709a, #fee140); }
.dept-header.design { background: linear-gradient(135deg, #a8edea, #fed6e3); color: var(--dark); }
.dept-header.default { background: linear-gradient(135deg, #6c757d, #495057); }
.dept-header h3 {
font-size: 1.1rem;
}
.dept-header span {
font-size: 2rem;
opacity: 0.8;
}
.dept-body {
padding: 20px;
}
.dept-stat {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid var(--border);
}
.dept-stat:last-child {
border-bottom: none;
}
.dept-stat label {
color: var(--gray);
font-size: 0.85rem;
}
.dept-stat value {
font-weight: 600;
color: var(--dark);
}
/* Data Table */
.table-container {
background: white;
border-radius: 12px;
box-shadow: var(--shadow);
overflow: hidden;
}
.table-header {
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}
.table-header h3 {
color: var(--dark);
}
.filter-tabs {
display: flex;
gap: 10px;
}
.filter-tab {
padding: 8px 16px;
border: 1px solid var(--border);
border-radius: 20px;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.3s;
background: white;
}
.filter-tab:hover, .filter-tab.active {
background: var(--primary);
color: white;
border-color: var(--primary);
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 15px 20px;
text-align: left;
}
th {
background: var(--light);
color: var(--gray);
font-weight: 600;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
tr {
border-bottom: 1px solid var(--border);
transition: background 0.3s;
}
tr:hover {
background: #f9fafb;
}
tr:last-child {
border-bottom: none;
}
.employee-info {
display: flex;
align-items: center;
gap: 12px;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--primary);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
}
.employee-details h4 {
color: var(--dark);
font-size: 0.95rem;
}
.employee-details p {
color: var(--gray);
font-size: 0.8rem;
}
.status-badge {
padding: 5px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
}
.status-active {
background: rgba(16, 185, 129, 0.1);
color: var(--success);
}
.status-inactive {
background: rgba(239, 68, 68, 0.1);
color: var(--danger);
}Editor is loading...
Leave a Comment