181 lines
2.7 KiB
CSS
181 lines
2.7 KiB
CSS
.app {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
padding: 20px;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
color: white;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5rem;
|
|
margin: 0;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.subtitle {
|
|
margin: 10px 0 0;
|
|
opacity: 0.9;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.main {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.add-section {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.add-section h2 {
|
|
margin: 0 0 16px;
|
|
color: #1f2937;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.add-form {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.input {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 12px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.btn-add {
|
|
padding: 12px 24px;
|
|
background: #667eea;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-add:hover {
|
|
background: #5568d3;
|
|
}
|
|
|
|
.employees-section h2 {
|
|
color: white;
|
|
margin: 0 0 16px;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.empty-message {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
color: white;
|
|
}
|
|
|
|
.employees-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.employee-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.employee-card:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.employee-name {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.btn-delete {
|
|
background: #fee2e2;
|
|
color: #ef4444;
|
|
border: none;
|
|
border-radius: 6px;
|
|
width: 28px;
|
|
height: 28px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: #fecaca;
|
|
}
|
|
|
|
.employee-position {
|
|
margin: 0 0 16px;
|
|
color: #6b7280;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.status-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
color: white;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
min-width: 100px;
|
|
text-align: center;
|
|
}
|
|
|
|
.status-select {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
background: white;
|
|
}
|
|
|
|
.status-select:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|