/* ---------------------------------------------------- */
/* Modern System Selection Page - Side-by-Side          */
/* ---------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
  color: #2c3e50;
  overflow-x: hidden;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Main layout */
.main-content {
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Header */
.selection-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
}

.selection-header h1 {
  font-size: 2.8em;
  font-weight: 700;
  color: #000833;
  margin-bottom: 10px;
}

.selection-header p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.6;
}

/* Card container - MODIFIED FOR SIDE-BY-SIDE */
.system-cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap; /* Changed from wrap to nowrap for side-by-side */
  gap: 40px;
  width: 100%;
  max-width: 1400px; /* Increased max-width for side-by-side layout */
  padding: 0 10px;
}

/* Individual card - MODIFIED FOR SIDE-BY-SIDE */
.system-card {
  flex: 1; /* Equal width for all cards */
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  max-width: 400px; /* Limit max width for side-by-side */
}

.system-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Card content */
.system-card i {
  font-size: 4em;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.system-card h2 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.system-card p {
  flex-grow: 1;
  font-size: 1em;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.select-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  transition: all 0.3s ease;
  align-self: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Card variants */
.car-booking-card i { color: #4a90e2; }
.car-booking-card .select-btn {
  background: #4a90e2;
}
.car-booking-card .select-btn:hover {
  background: #357ac9;
}

.leave-management-card i { color: #1abc9c; }
.leave-management-card .select-btn {
  background: #1abc9c;
}
.leave-management-card .select-btn:hover {
  background: #159c82;
}

.staff-login-card i { color: #f39c12; }
.staff-login-card .select-btn {
  background: #f39c12;
}
.staff-login-card .select-btn:hover {
  background: #d68910;
}

.systemadmin-login-card i { color: #8e12f3; }
.systemadmin-login-card .select-btn {
  background: #8e12f3;
}
.systemadmin-login-card .select-btn:hover {
  background: #7a00d9;
}

/* Equal height visual fix */
.system-card h2,
.system-card p,
.system-card .select-btn {
  transition: transform 0.3s ease, color 0.3s ease;
}

.system-card:hover i {
  transform: scale(1.1);
}

/* Hover glow color match */
.car-booking-card:hover {
  border-color: #4a90e2;
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}
.leave-management-card:hover {
  border-color: #1abc9c;
  box-shadow: 0 10px 30px rgba(26, 188, 156, 0.3);
}
.staff-login-card:hover {
  border-color: #f39c12;
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}
.systemadmin-login-card:hover {
  border-color: #8e12f3;
  box-shadow: 0 10px 30px rgba(142, 18, 243, 0.3);
}

/* Responsive design - MODIFIED FOR SIDE-BY-SIDE */
@media (max-width: 1200px) {
  .system-cards-container {
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    max-width: 1000px;
  }
  
  .system-card {
    flex: 1 1 45%; /* Two cards per row on medium screens */
    max-width: none;
  }
}

@media (max-width: 992px) {
  .selection-header h1 {
    font-size: 2.2em;
  }
  .system-cards-container {
    gap: 30px;
  }
  .system-card {
    flex: 1 1 45%; /* Two cards per row */
  }
}

@media (max-width: 768px) {
  .system-cards-container {
    flex-direction: row; /* Keep row direction */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 25px;
  }
  
  .system-card {
    flex: 1 1 100%; /* One card per row on mobile */
    width: 90%;
    max-width: 400px;
  }
  
  .system-card i {
    font-size: 3.5em;
  }
}

@media (max-width: 480px) {
  .selection-header h1 {
    font-size: 1.8em;
  }
  
  .system-card {
    padding: 25px;
    min-height: 380px;
  }
  
  .select-btn {
    padding: 10px 22px;
    font-size: 0.9em;
  }
}

/* Special media query for very wide screens */
@media (min-width: 1400px) {
  .system-cards-container {
    gap: 50px;
    max-width: 1600px;
  }
  
  .system-card {
    max-width: 450px;
  }
}

body, h1, h2, h3, h4, h5, h6, p, table, .table {
    font-family: 'Poppins', 'Inter', sans-serif !important;
}