:root {
    --primary-color: #1a73e8;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-gradient);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.university-brand {
    color: #1a237e;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.access-text {
    color: #5f6368;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Google Button Customization */
.g_id_signin iframe {
    margin: 0 auto;
}
iframe{
  margin:auto !important;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .university-brand {
        font-size: 1.5rem;
    }
}



/* Dashboard container styling */
.dashboard-container {
    background: #fff;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.08), 0 1.5px 5px rgba(0,0,0,0.07);
    text-align: center;
  }
  
  /* Form styling */
  #logsheet-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
  }
  
  #logsheet-form input,
  #logsheet-form button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
  }
  
  #logsheet-form input:focus {
    border-color: #1a73e8;
  }
  
  #logsheet-form button {
    background: var(--primary-color, #1a73e8);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
  }
  
  #logsheet-form button:hover {
    background: #1763c6;
  }
  
  /* Table styling */
  #logsheets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
  }
  
  #logsheets-table th, #logsheets-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
  }
  
  #logsheets-table thead {
    background: #e3eafc;
  }
  
  #logsheets-table tbody tr:nth-child(even) {
    background: #f5f7fa;
  }
  
  #logsheets-table th {
    color: #1a237e;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  #logsheets-table td {
    color: #333;
  }
  
  #logsheets-table button {
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
  }
  
  #logsheets-table button:hover {
    background: #c62828;
  }
  
  /* Responsive design */
  @media (max-width: 600px) {
    .dashboard-container {
      padding: 1rem;
    }
    #logsheet-form {
      flex-direction: column;
      gap: 0.5rem;
    }
    #logsheets-table th, #logsheets-table td {
      font-size: 0.95rem;
      padding: 0.5rem 0.3rem;
    }
  }

  /* Role indicator */
.role-badge {
    background: #1a73e8;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 1rem;
  }

  /* Employee Dashboard Styling */
.dashboard-container {
  background: #fff;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26, 115, 232, 0.1);
}

/* Role Badge */
.role-badge {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 1rem;
  display: inline-block;
}

/* Form Styling */
#logsheet-form {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e3f2fd;
}

#logsheet-form input {
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#logsheet-form input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  outline: none;
}

#logsheet-form button {
  grid-column: span 4;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#logsheet-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
}

/* Table Styling */
#logsheets-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

#logsheets-table th {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#logsheets-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

#logsheets-table tbody tr:hover {
  background: #f8f9fa;
  transition: background 0.2s ease;
}

/* Action Buttons */
.edit-btn, .delete-btn {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.edit-btn {
  background: #4caf50;
  color: white;
}

.edit-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.delete-btn {
  background: #f44336;
  color: white;
}

.delete-btn:hover {
  background: #da190b;
  transform: translateY(-1px);
}

/* Submit Button */
#submit-button {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  width: 100%;
  transition: all 0.3s ease;
}

#submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

#submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  #logsheet-form {
      grid-template-columns: 1fr;
  }
  
  #logsheet-form button {
      grid-column: span 1;
  }
  
  .dashboard-container {
      margin: 1rem;
      padding: 1.5rem;
  }
  
  #logsheets-table {
      font-size: 0.9rem;
  }
  
  #logsheets-table th,
  #logsheets-table td {
      padding: 0.5rem;
  }
}

.status-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-draft {
  background: #e3f2fd;
  color: #1976d2;
}

.status-submitted {
  background: #fff3e0;
  color: #f57c00;
}

.status-approved {
  background: #e8f5e8;
  color: #388e3c;
}

.no-actions {
  color: #999;
  font-style: italic;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.summary-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.summary-card h3 {
  font-size: 2rem;
  color: #1a73e8;
  margin: 0 0 0.5rem 0;
}

.summary-card p {
  color: #6c757d;
  margin: 0;
  font-weight: 500;
}

/* History Section */
#history-section {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  cursor: pointer;
}

#history-table {
  width: 100%;
  border-collapse: collapse;
}

#history-table th {
  background: #e9ecef;
  padding: 0.75rem;
  text-align: left;
}

#history-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

/* View History Button */
#view-history-btn {
  background: #6f42c1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

#view-history-btn:hover {
  background: #5a32a3;
}

/* Responsive table container for history section */
#history-grouped-container, .month-group {
  overflow-x: auto;
}

.month-table, #history-grouped-container table {
  table-layout: fixed;
  width: 100%;
  min-width: 700px;
}

.month-table th, .month-table td, #history-grouped-container table th, #history-grouped-container table td {
  word-break: break-word;
  white-space: pre-line;
  max-width: 180px;
  vertical-align: top;
}

/* Make input fields in table cells responsive */
.month-table input[type="text"], #history-grouped-container table input[type="text"] {
  width: 100%;
  min-width: 80px;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  white-space: pre-line;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .month-table, #history-grouped-container table {
    min-width: 600px;
  }
}

@media (max-width: 600px) {
  .month-table, #history-grouped-container table {
    min-width: 400px;
    font-size: 0.95rem;
  }
  .month-table th, .month-table td, #history-grouped-container table th, #history-grouped-container table td {
    max-width: 100px;
    padding: 0.5rem 0.3rem;
  }
}

.file-upload-section {
  background: #f5f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 480px;
  margin: 2rem auto 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.file-upload-section label {
  font-weight: 500;
  color: #1a237e;
  margin-bottom: 0.3rem;
  display: block;
}
.file-upload-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

/* Custom file input styling */
.custom-file-input {
  display: none;
}
.custom-file-label {
  display: inline-block;
  background: var(--primary-color, #1a73e8);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 0.7rem;
  border: none;
}
.custom-file-label:hover {
  background: #1763c6;
}
.file-upload-filename {
  font-size: 0.98rem;
  color: #333;
  font-style: italic;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .file-upload-section {
    padding: 1rem 0.5rem;
    max-width: 98vw;
  }
  .file-upload-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0.7rem;
  }
  .custom-file-label {
    width: 100%;
    text-align: center;
    margin-bottom: 0.3rem;
  }
  .file-upload-filename {
    max-width: 98vw;
  }
}

.button-group {
  display: flex;
  gap: 12px;
  align-items: center;
}
.button-group .btn {
  margin: 0;
}
.btn {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 1.05em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  outline: none;
  appearance: none;
  min-width: 120px;
  /* max-width: 180px; */
  white-space: nowrap;
  text-align: center;
}
.btn:hover, .btn:focus {
  background: #1256a3;
}

.card, .log-history-card, .container, .main-container {
  max-width: 800px;
  width: 95%;
  margin: 40px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.08);
  padding: 40px 32px 48px 32px;
  overflow-x: auto;
}

.month-table {
  width: 100%;
  overflow-x: auto;
}

.user-management-scrollable {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 8px;
}

.approval-requests-scrollable {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 8px;
}

.user-management-scrollable::-webkit-scrollbar,
.approval-requests-scrollable::-webkit-scrollbar {
  width: 8px;
}
.user-management-scrollable::-webkit-scrollbar-thumb,
.approval-requests-scrollable::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .user-management-scrollable,
  .approval-requests-scrollable {
    max-height: 250px;
  }
}

  
  
  
