style.css

26.61 KB
13/07/2025 05:45
CSS
style.css
:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e2563;
  --secondary-color: #06b6d4;
  --accent-color: #8b5cf6;
  --background-color: #f8fafc;
  --background-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --surface-color: #ffffff;
  --surface-hover: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius-sm: 6px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans Thai', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background-gradient);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}
/* Desktop Navigation */
.desktop-nav {
  display: none;
  /* Hide by default, will show on desktop with media query */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 2rem;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand i {
  color: var(--secondary-color);
}
.nav-menu {
  display: flex;
  gap: 0.5rem;
}
.nav-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}
.nav-item:hover::before {
  left: 100%;
}
.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transform: translateY(-1px);
}
.nav-item.active {
  background: var(--secondary-color);
  box-shadow: var(--shadow-md);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.notification-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  overflow: visible;
}
.notification-btn:before {
  display: none;
}
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
/* Mobile Container */
.mobile-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  background: var(--surface-color);
  box-shadow: var(--shadow-xl);
  border-radius: 0;
  overflow: hidden;
}
.mobile-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.mobile-header h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.header-actions .fa-bell {
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
}
.header-actions .fa-bell:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  transform: scale(1.1);
}
#app-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  background: var(--background-gradient);
  min-height: calc(100vh - 140px);
  width: 100%;
}
#desktop-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--background-gradient);
  min-height: calc(100vh - 70px);
  /* Subtract desktop-nav height */
  width: 100%;
  display: none;
  /* Hidden by default, shown in desktop media query */
}
.mobile-nav {
  display: flex;
  justify-content: space-around;
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0.5rem 1rem 0.5rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  bottom: 0;
  z-index: 50;
}
.nav-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: none;
}
.nav-button.active,
.nav-button:hover {
  color: var(--primary-color);
  background: rgba(30, 58, 138, 0.1);
  transform: translateY(-2px);
}
.nav-button.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-md);
}
.nav-button i {
  font-size: 1.25rem;
  transition: var(--transition);
}
.nav-button.active i {
  transform: scale(1.1);
}
.card {
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  background: var(--surface-color);
  margin-bottom: 1rem;
  transition: var(--transition);
  color: var(--text-primary);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
  background: white;
}
button, .btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
button::before, .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
button:hover::before, .btn:hover::before {
  left: 100%;
}
button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}
button:active, .btn:active {
  transform: translateY(0);
}
.modal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  animation: fadeIn 0.3s ease-out forwards;
}
#modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: auto;
}
#modal-container.hidden {
  opacity: 0;
  pointer-events: none;
}
#modal-container .modal-content {
  z-index: 2100;
}
body.modal-open {
  overflow: hidden;
}
/* Modal Content Responsive & Modern */
.modal-content {
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem 1.5rem;
  min-width: 320px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96);
  animation: modalSlideIn 0.3s ease-out forwards;
  margin: 0 auto;
  z-index: 2100;
}
@media (max-width: 600px) {
  .modal-content {
    max-width: 98vw;
    min-width: 0;
    border-radius: var(--border-radius);
    padding: 1rem 0.5rem;
    box-shadow: var(--shadow-md);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes modalSlideIn {
  to {
    transform: scale(1);
  }
}
/* Card Title */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}
.card-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}
/* Button Styles */
.button-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}
.button-secondary {
  background: var(--surface-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.button-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Summary Grid (Dashboard) */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.summary-card {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.summary-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.summary-card .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
/* Profile Header & Avatar */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 auto 1rem auto;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  position: relative;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  padding: 2px;
}
/* Profile Details */
.profile-details {
  background: var(--surface-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.profile-details .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.profile-details .detail-item:last-child {
  border-bottom: none;
}
.profile-details .detail-item:hover {
  background: var(--surface-hover);
  margin: 0 -1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
}
.profile-details .detail-item strong {
  color: var(--text-primary);
  font-weight: 600;
}
.profile-details .detail-item span {
  color: var(--text-secondary);
  font-weight: 500;
}
/* Leave Request List */
.leave-request-item {
  display: flex;
  align-items: center;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.leave-request-item:last-child {
  border-bottom: none;
}
.leave-info {
  flex-grow: 1;
}
.leave-info .name {
  font-weight: bold;
}
.leave-info .leave-type {
  font-size: 0.9rem;
  color: #555;
}
.leave-info .leave-date {
  font-size: 0.8rem;
  color: #777;
}
.leave-status {
  font-weight: bold;
}
.leave-status.approved {
  color: #4caf50;
}
.leave-status.rejected {
  color: #f44336;
}
.profile-details .detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.profile-details .detail-item:last-child {
  border-bottom: none;
}
.profile-details .detail-item strong {
  color: #333;
}
.profile-details .detail-item span {
  color: #666;
}
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
  max-width: 300px;
}
.notification-success {
  border-left: 4px solid #10b981;
}
.notification-error {
  border-left: 4px solid #ef4444;
}
.notification-info {
  border-left: 4px solid var(--primary-color);
}
.notification-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
/* Improved List Items */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}
.list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.list-item:hover {
  background: var(--surface-hover);
  transform: translateX(4px);
}
.list-item .info {
  flex: 1;
}
.list-item .info .name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.list-item .info .meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
/* Enhanced Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--surface-color);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}
/* Search Bar */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  background: var(--surface-color);
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}
/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 100;
}
.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}
/* Additional Animations and Visual Effects */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.card {
  animation: slideIn 0.4s ease-out;
}
.card:nth-child(2) {
  animation-delay: 0.1s;
}
.card:nth-child(3) {
  animation-delay: 0.2s;
}
.card:nth-child(4) {
  animation-delay: 0.3s;
}
.summary-card {
  animation: slideIn 0.4s ease-out;
  position: relative;
  overflow: hidden;
}
.summary-card:nth-child(1) {
  animation-delay: 0.1s;
}
.summary-card:nth-child(2) {
  animation-delay: 0.2s;
}
.summary-card:nth-child(3) {
  animation-delay: 0.3s;
}
.summary-card:nth-child(4) {
  animation-delay: 0.4s;
}
.summary-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  transition: var(--transition);
  opacity: 0;
}
.summary-card:hover::after {
  animation: shimmer 0.8s ease-in-out;
  opacity: 1;
}
.notification-badge {
  animation: pulse 1.5s infinite;
}
/* Enhanced Focus States */
.nav-item:focus,
.nav-button:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}
/* Enhanced Loading States */
.loading-state {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.loading-state::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(30, 58, 138, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}
/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #0f172a;
    --background-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --border-color: #334155;
  }
}
/* Print Styles */
@media print {
  .desktop-nav,
  .mobile-nav,
  .fab,
  .notification-btn {
    display: none !important;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  body {
    background: white;
    color: black;
  }
}
/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --primary-light: #0000ff;
    --secondary-color: #008080;
    --border-color: #000000;
  }
}
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card,
  .summary-card {
    animation: none;
  }
}
/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background-color);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--primary-light), var(--accent-color));
}
/* Enhanced Selection */
::selection {
  background: rgba(30, 58, 138, 0.2);
  color: var(--primary-color);
}
/* Enhanced Placeholder */
::placeholder {
  color: var(--text-light);
  opacity: 1;
}
/* Glass Morphism Effect for Modern Look */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Mobile Styles - Default */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-container {
    display: flex;
  }
  #app-content {
    padding: 1.5rem 1rem;
  }
  #desktop-content {
    display: none;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 1.25rem;
  }
}
/* Desktop Styles */
@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-container {
    display: none;
  }
  #desktop-content {
    display: block;
    padding: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 70px);
  }
  .app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
  }
  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card {
    max-width: 100%;
  }
  .desktop-nav .nav-menu {
    flex: 1;
    justify-content: center;
  }
}
/* Improved Touch Targets for Mobile */
@media (max-width: 768px) {
  .nav-button,
  .button-primary,
  .button-secondary,
  .fab {
    min-height: 44px;
    min-width: 44px;
  }
  .nav-button {
    padding: 0.75rem 1rem;
  }
}
/* Dashboard Charts Grid */
.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 769px) {
  .dashboard-charts {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .dashboard-charts .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
  }
}
/* Employee Cards */
.employee-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.employee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.employee-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.employee-card .employee-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.employee-card .employee-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.employee-card .employee-details h3 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}
.employee-card .employee-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
/* Candidate Card */
.candidate-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.4s ease-out;
}
.candidate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.candidate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.candidate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.candidate-info h3 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}
.candidate-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.candidate-status {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface-hover);
  color: var(--primary-color);
  border: 1px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  min-width: 90px;
  text-align: center;
}
.candidate-status.new {
  background: var(--primary-light);
  color: #fff;
}
.candidate-status.interview {
  background: var(--secondary-color);
  color: #fff;
}
.candidate-status.hired {
  background: var(--accent-color);
  color: #fff;
}
/* Task Item */
.task-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
}
.task-item.completed {
  opacity: 0.6;
  text-decoration: line-through;
  background: var(--surface-hover);
}
.task-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.task-item .leave-info {
  flex: 1;
}
.task-item .name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.task-item .leave-type {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.task-item .button-primary,
.task-item .button-approve {
  min-width: 100px;
  margin-left: 1rem;
}
@media (max-width: 600px) {
  .candidate-card, .task-item {
    padding: 1rem 0.75rem;
  }
}