/* Modern Employee Management System Styles */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Open+Sans:wght@300;400;500;600&display=swap");

:root {
  /* Color Palette - Professional & Modern */
  --primary-color: #164e63;
  --primary-light: #0891b2;
  --primary-dark: #0c4a6e;
  --secondary-color: #d97706;
  --secondary-light: #f59e0b;
  --secondary-dark: #b45309;
	

	
  /* Neutrals */
  --white: #ffffff;
  --light-cyan: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Spacing & Layout */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 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);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--light-cyan) 100%);
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

/* Modern Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}


.sidebar a::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;
}

.sidebar a:hover::before {
  left: 100%;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.sidebar a.active {
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

/* Badge Notifications */
.badge-notify {
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Main Content */
.content {
  background: transparent;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Welcome Header */
.welcome-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.welcome-header h2 {
  color: white;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.welcome-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1.1rem;
}

/* Modern Cards */
.card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.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);
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-800);
}

.card-body {
  padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stats-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.stats-card .number {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--gray-800);
  margin: 0.5rem 0;
}

.stats-card .label {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Modern Tables */
.table {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background: var(--gray-50);
  border: none;
  color: var(--gray-700);
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: var(--gray-50);
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem;
  border-color: var(--gray-200);
  vertical-align: middle;
}

/* Modern Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.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;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: var(--white);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: var(--white);
}

.acciones-row {
    display: none;
	
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), var(--secondary-color));
  color: var(--white);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border: 2px solid var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger);
  color: var(--white);
  transform: translateY(-2px);
}

/* Modern Forms */
.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  font-family: var(--font-body);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 78, 99, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* Modern Alerts */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  font-weight: 500;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border-left-color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border-left-color: var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border-left-color: var(--danger);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border-left-color: var(--info);
}

/* Modern Badges */
.badge {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bg-success {
  background: var(--success) !important;
}

.bg-warning {
  background: var(--warning) !important;
}

.bg-danger {
  background: var(--danger) !important;
}

.bg-info {
  background: var(--info) !important;
}

/* Modern Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-800);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
}

/* Menu Toggle Button */
.menu-toggle {
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .content {
    padding: 1rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .stats-card .number {
    font-size: 2rem;
  }

  .stats-card .icon {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Glassmorphism Effect for Special Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Notification Styles */
.notification-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 0.5rem 0;
}

.notification-item:hover {
  background: var(--gray-50);
  transform: translateX(4px);
}

.notification-card {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  border: none;
  color: #92400e;
}

.notification-card .card-header {
  background: rgba(146, 64, 14, 0.1);
  border-bottom-color: rgba(146, 64, 14, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .content {
    margin-left: 0;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
