* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 15px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.info-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #856404;
  font-size: 14px;
}

.info-banner i {
  font-size: 18px;
  flex-shrink: 0;
}

.header {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.welcome-message {
  text-align: center;
  color: #667eea;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 500;
}

.logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.user-info {
  position: absolute;
  top: 20px;
  right: 120px;
  font-size: 14px;
  color: #666;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  max-width: 200px;
  padding: 12px 24px;
  border: 2px solid #4CAF50;
  background: white;
  color: #4CAF50;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: #4CAF50;
  color: white;
}

.tab-btn.active {
  background: #4CAF50;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.month-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.month-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: #f0f0f0;
  color: #666;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.month-btn:hover {
  background: #4CAF50;
  color: white;
}

.month-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.calendar-header {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.week-item {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #999;
  font-weight: bold;
}

.calendar-body {
  display: flex;
  flex-wrap: wrap;
}

.day-item {
  width: 14.28%;
  padding: 4px 0;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.day-item:hover {
  background: #f5f5f5;
}

.day-number {
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  position: relative;
}

.day-number.today {
  background: #4CAF50;
  color: white;
}

.day-number.selected {
  background: #ff9800;
  color: white;
}

.day-badges {
  position: absolute;
  top: -2px;
  right: -2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.badge {
  display: inline-block;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: normal;
  line-height: 1;
  min-width: 12px;
  text-align: center;
}

.shift-badge.day {
  background: #e3f2fd;
  color: #1976d2;
}

.shift-badge.night {
  background: #f3e5f5;
  color: #7b1fa2;
}

.hours-badge {
  background: #fff3e0;
  color: #f57c00;
}

.hours-badge.leave-badge {
  background: #ffebee;
  color: #c62828;
}

.form-item {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  height: 45px;
  line-height: 45px;
  padding: 0 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.form-input:disabled {
  background: #f5f5f5;
  color: #999;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-label input {
  margin-right: 8px;
}

.radio-label span {
  font-size: 14px;
  color: #333;
}

.total-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
}

.total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.total-item:last-child {
  margin-bottom: 0;
}

.total-label {
  font-size: 14px;
  opacity: 0.9;
}

.total-value {
  font-size: 18px;
  font-weight: bold;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.button-group .btn {
  flex: 1;
}

.btn {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 25px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.btn-primary {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-default {
  background: white;
  color: #4CAF50;
  border: 2px solid #4CAF50;
}

.btn-danger {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.btn-small {
  width: auto;
  height: 35px;
  line-height: 35px;
  padding: 0 15px;
  font-size: 13px;
  margin-top: 0;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 17px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #4CAF50;
  border-bottom: none;
}

.summary-label {
  font-size: 14px;
  color: #666;
}

.summary-value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.salary-detail {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item.total {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #4CAF50;
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: #666;
}

.detail-value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.today-badge {
  font-size: 14px;
  color: #4CAF50;
  margin-left: 10px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-primary {
  color: #4CAF50;
}

.text-danger {
  color: #f44336;
}

.text-success {
  color: #4CAF50;
}

.text-warning {
  color: #ff9800;
}

.text-muted {
  color: #999;
}

.font-bold {
  font-weight: bold;
}

.font-large {
  font-size: 24px;
}

.font-medium {
  font-size: 18px;
}

.font-small {
  font-size: 12px;
}

.history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.3s;
}

.history-item:hover {
  background: #f5f5f5;
}

.history-item:last-child {
  border-bottom: none;
}

.history-date {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.history-salary {
  font-size: 16px;
  font-weight: bold;
  color: #4CAF50;
}

.history-detail {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header h1 {
    font-size: 24px;
  }

  .card {
    padding: 20px;
  }

  .day-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
  }

  .shift-tag,
  .hours-tag {
    font-size: 10px;
    padding: 1px 6px;
  }
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 300px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.success::before {
  background: #4CAF50;
}

.toast.error::before {
  background: #f44336;
}

.toast.warning::before {
  background: #ff9800;
}

.toast.info::before {
  background: #2196F3;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #4CAF50;
}

.toast.error .toast-icon {
  color: #f44336;
}

.toast.warning .toast-icon {
  color: #ff9800;
}

.toast.info .toast-icon {
  color: #2196F3;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.toast-close:hover {
  background: #f5f5f5;
  color: #333;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  animation: progress 3s linear;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}