* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #2196F3;
  --secondary-color: #1976D2;
  --background-color: #f5f6fa;
  --sidebar-width: 250px;
  --header-height: 70px;
}

.dashboard {
  display: flex;
  min-height: 100vh;
  background-color: var(--background-color);
}

.sidebar {
  width: var(--sidebar-width);
  background: white;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 24px;
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.nav-item:hover {
  background: #f0f7ff;
  color: var(--primary-color);
}

.nav-item.active {
  background: var(--primary-color);
  color: white;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.header {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-display {
  font-size: 18px;
  color: #666;
}

.input-section {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 5px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group i {
  color: #999;
  margin-right: 10px;
}

input {
  flex: 1;
  padding: 12px;
  border: none;
  font-size: 16px;
  outline: none;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
  background: var(--secondary-color);
}

.content-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.attendance-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.attendance-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.attendance-card:hover {
  transform: translateY(-2px);
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #444;
}

tr:hover {
  background: #f8f9fa;
}

.hidden {
  display: none;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
}

.status-present {
  background: #e3f2fd;
  color: var(--primary-color);
}

.status-complete {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-progress {
  background: #fff3e0;
  color: #e65100;
}

.timeout-btn {
  padding: 8px 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.timeout-btn:hover {
  background: var(--secondary-color);
}

.timeout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.time-display {
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding: 10px;
  }
  
  .main-content {
    padding: 10px;
  }
}