/* Exam Schedule Print Styles - Scoped to avoid conflicts */
.exam-schedule-print {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  color: #333333;
}

.exam-schedule-print * {
  box-sizing: border-box;
}

/* Header Section */
.exam-schedule-print .exam-schedule-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.exam-schedule-print .exam-schedule-header h1 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-weight: bold;
}

.exam-schedule-print .exam-schedule-header p {
  font-size: 1rem;
  color: #666666;
  margin: 0 0 20px 0;
}

.exam-schedule-print .header-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.exam-schedule-print .header-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.exam-schedule-print .header-buttons button:first-child {
  background-color: #3498db;
  color: white;
}

.exam-schedule-print .header-buttons button:first-child:hover {
  background-color: #2980b9;
}

.exam-schedule-print .header-buttons button:last-child {
  background-color: #27ae60;
  color: white;
}

.exam-schedule-print .header-buttons button:last-child:hover {
  background-color: #219a52;
}

/* Main Card */
.exam-schedule-print .exam-schedule-card {
  border: 2px solid #34495e;
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* School Header */
.exam-schedule-print .school-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #bdc3c7;
}

.exam-schedule-print .school-logo {
  width: 60px;
  height: 60px;
  background-color: #ecf0f1;
  border: 2px solid #bdc3c7;
  border-radius: 50%;
  flex-shrink: 0;
}

.exam-schedule-print .school-details {
  flex-grow: 1;
  text-align: center;
  margin: 0 20px;
}

.exam-schedule-print .school-details h2 {
  font-size: 1.8rem;
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-weight: bold;
}

.exam-schedule-print .school-details p {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0 0 10px 0;
}

.exam-schedule-print .school-details h4 {
  font-size: 1.2rem;
  margin: 0;
  color: #e74c3c;
  font-weight: bold;
  letter-spacing: 1px;
}

.exam-schedule-print .school-estd {
  font-size: 1rem;
  color: #34495e;
  font-weight: bold;
  text-align: right;
}

/* Exam Info Section */
.exam-schedule-print .exam-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.exam-schedule-print .student-info {
  flex: 1;
}

.exam-schedule-print .student-info p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.exam-schedule-print .student-info b {
  color: #2c3e50;
  font-size: 1.1rem;
}

.exam-schedule-print .exam-name {
  flex: 1;
  text-align: right;
}

.exam-schedule-print .exam-name h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1.4rem;
}

.exam-schedule-print .exam-name p {
  margin: 0;
  color: #666666;
  font-size: 0.95rem;
}

/* Table Styles */
.exam-schedule-print .exam-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.exam-schedule-print .exam-table th {
  background-color: #34495e;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #2c3e50;
}

.exam-schedule-print .exam-table td {
  padding: 10px 15px;
  border: 1px solid #bdc3c7;
  background-color: #ffffff;
}

.exam-schedule-print .exam-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.exam-schedule-print .exam-table tbody tr:hover {
  background-color: #e8f4fd;
}

/* Footer Section */
.exam-schedule-print .exam-footer {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-top: 1px solid #bdc3c7;
}

.exam-schedule-print .exam-footer p {
  margin: 10px 0;
  font-size: 0.95rem;
}

.exam-schedule-print .signature {
  text-align: right;
  font-weight: bold;
  color: #2c3e50;
}

/* Contact Bar */
.exam-schedule-print .contact-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 10px 0;
  background-color: #ecf0f1;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #2c3e50;
}

.exam-schedule-print .contact-bar span {
  font-weight: 500;
}

/* Print Styles */
@media print {
  .exam-schedule-print .header-buttons {
    display: none !important;
  }
  
  .exam-schedule-print .exam-schedule-card {
    box-shadow: none;
    border: 2px solid #000;
  }
  
  .exam-schedule-print {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .exam-schedule-print .exam-table th {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .exam-schedule-print .school-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .exam-schedule-print .exam-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .exam-schedule-print .exam-name {
    text-align: left;
  }
  
  .exam-schedule-print .contact-bar {
    flex-direction: column;
    gap: 10px;
  }
  
  .exam-schedule-print .header-buttons {
    flex-direction: column;
    align-items: center;
  }
}