/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 70px;
}

.content-wrapper {
  padding: 20px;
  padding-bottom: 70px;
}
.card {
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.navbar-light .navbar-nav .nav-item .nav-link {

  color: orange;

}

h2 {
  font-weight: 700;
}

/* Form Styles */
.form-group label {
  font-weight: 600;
}

.btn-primary {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

/* Table Styles */
.table-responsive {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.bottom-navbar .nav-item {
  flex: 1;
  text-align: center;
}
.bottom-navbar .nav-link {
  padding: 10px;
  color: #6c757d;
}
.bottom-navbar .nav-link.active {
  color: #4CAF50;
}
.bottom-navbar .nav-link i {
  font-size: 1.5em;
  display: block;
  margin-bottom: 5px;
}
.bottom-navbar .nav-link span {
  font-size: 0.9em;
}

/* Login Page Styles */
.login-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.login-header {
  background-color: #ffffff;
  color: black;
  text-align: center;
  padding: 20px;
}

.login-header img {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.login-form {
  padding: 30px;
}

.login-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #45a049;
}

/* Input Styles */
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #4caf50;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group input.focused {
  outline: none;
  border-color: black !important;
}

/* Password Input Styles */
.form-group .password-input {
  position: relative;
}

.form-group .password-input .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

/* Alert Styles */
.alert {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Top Bar Styles */
.top-bar {
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.greeting-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.greeting {
  font-size: 1.4em;
  font-weight: 500;
}

.user-name {
  font-size: 1.1em;
  opacity: 0.9;
}

.notification-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  padding: 8px;
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.notification-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #FF5722;
  color: white;
  font-size: 0.7em;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* User Info Styles */
.user-info {
  background-color: #E8F5E9;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.datetime-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.current-date {
  font-size: 0.9em;
  color: #666;
}

.current-time {
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
}

/* Location Badge Styles */
.location-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.9em;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-status-badge i {
  font-size: 1em;
  flex-shrink: 0;
}

.location-status-badge.at-office {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #81C784;
}

.location-status-badge.at-office i {
  color: #2E7D32;
}

.location-status-badge.not-found {
  background: #F5F5F5;
  color: #424242;
  border: 1px solid #E0E0E0;
}

.location-status-badge.not-found i {
  color: #616161;
}

.location-status-badge.checking {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #90CAF9;
}

.location-status-badge.checking i {
  color: #1565C0;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Attendance Options Styles */
.attendance-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.attendance-option {
  flex: 1;
  margin: 0 0.5rem;
}

.custom-radio {
  padding: 0.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.25rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.custom-radio.active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}
.custom-control-label {
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-control-input {
  display: none;
}
.submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  margin-top: 1rem;
}
/* Recent Activity Styles */
#recentActivity {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Overlay Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.icon-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Success and Error Icons */
.checkmark-circle, .cross-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark-circle {
  background-color: #4CAF50;
}

.cross-circle {
  background-color: #f44336;
}

.checkmark, .cross {
  width: 60px;
  height: 60px;
  stroke-width: 2;
  stroke: white;
  stroke-miterlimit: 10;
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: drawIcon 1s ease-in-out forwards;
}

@keyframes drawIcon {
  100% {
      stroke-dashoffset: 0;
  }
}

/* Responsive Styles */
@media (max-width: 576px) {
  .attendance-option {
      flex: 1 1 100%;
      max-width: 100%;
  }
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it is on top of other elements */
}

.loading-content {
  text-align: center;
  color: white; /* Text color */
}

.loading-message {
  font-size: 20px; /* Font size for the message */
  margin-bottom: 20px; /* Space between message and progress bar */
}

.progress-bar {
  width: 100%;
  height: 10px; /* Height of the progress bar */
  background-color: #ccc; /* Background color of the progress bar */
  border-radius: 5px; /* Rounded corners */
  overflow: hidden; /* Hide overflow */
}

.progress-fill {
  height: 100%;
  width: 0%; /* Start with 0% width */
  background-color: #4CAF50; /* Color of the progress fill */
  animation: loading 2s infinite; /* Animation for loading effect */
}

@keyframes loading {
  0% { width: 0%; }
  50% { width: 50%; }
  100% { width: 0%; }
}

.camera-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#attendance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#camera-container {
  width: 80%;
  max-width: 500px;
  aspect-ratio: 1;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
}
.button-container {
  text-align: center;
}

.capture-button {
  padding: 10px 20px;
  font-size: 24px;
  background-color: #9152f8;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 20px;
}

/* Preloader */

@keyframes drop {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(80px);
  }
  100% {
    transform: translateY(0px);
  }
}

.preloader{
  background: white;
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.lava-lamp {
  position: relative;
  width: 50px;
  height: 100px;
  background: #000;
  border-radius: 25px;
  overflow: hidden;
}

.bubble {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(to bottom, #e64980, #ff8787);
  border-radius: 50%;
  left: 15px;
  animation: drop 5s ease-in-out infinite;
}
.bubble1 {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(to bottom, #82c91e, #3bc9db);
  border-radius: 50%;
  left: 1px;
  animation: drop 3s ease-in-out infinite;
}
.bubble2 {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(to bottom, #7950f2, #f783ac);
  border-radius: 50%;
  left: 30px;
  animation: drop 4s ease-in-out infinite;
}
.bubble3 {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(to bottom, #4481eb, #04befe);
  border-radius: 50%;
  left: 20px;
  animation: drop 6s ease-in-out infinite;
}



.dashboard{
  color: white;
  text-decoration: none;

}
.dashboard:hover{
  color: rgb(0, 255, 247);
}

.clock {
  font-size: 2em;
  color: white;
  text-align: center;
}

.date {
  font-size: 1.2em;
  color: white;
  text-align: center;
  margin-bottom: 10px;
}

.eye-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #ffffff;
}
p{
  color: rgb(0, 0, 0);
}
.reminder{
  background-color: #ffffd0;
  border: 1px solid #e6e600;
  border-radius: 5px;
  padding: 5px;
  margin: 5px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}
/* sucess tick */
/* Shared Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.icon-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Success Icon Styles */
.checkmark-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #4CAF50;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark {
  width: 60px; 
  height: 60px; 
  stroke-width: 2; 
  stroke: white;
  stroke-miterlimit: 10;
  stroke-dasharray: 188; 
  stroke-dashoffset: 188; 
  animation: drawCheckmark 1s ease-in-out forwards;
}

/* Error Icon Styles */
.cross-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f44336;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cross {
  width: 60px;
  height: 60px; 
  stroke-width: 3; 
  stroke: white;
  stroke-miterlimit: 10;
  stroke-dasharray: 188; 
  stroke-dashoffset: 188; 
  animation: drawCrossLine 1s ease-in-out forwards;
}

.cross-line {
  stroke-dasharray: 188; 
  stroke-dashoffset: 188; 
  animation: drawCrossLine 1s ease-in-out forwards;
}

/* Keyframes for Animations */
@keyframes drawCheckmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCrossLine {
  100% {
    stroke-dashoffset: 0;
  }
}


.main-content {
  padding: 20px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.activity-header h3 {
  margin: 0;
  font-size: 1.2rem;
}
.see-more {
  color: #4CAF50;
  text-decoration: none;
}
.activity-list {
  list-style-type: none;
  padding: 0;
}
.activity-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}
.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}
.activity-details {
  flex-grow: 1;
}
.activity-type {
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.activity-date {
  font-size: 0.9rem;
  color: #666;
}
.activity-time {
  text-align: right;
}
.activity-status {
  font-size: 0.9rem;
  color: #666;
}
@media (max-width: 576px) {
  .attendance-option {
      flex: 1 1 100%;
      max-width: 100%;
  }
}

/* Override Bootstrap styles */
.custom-radio .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::after,
.custom-radio .custom-control-label::before,
.custom-radio .custom-control-label::after {
  display: none;
}

/* Custom radio button styles */
.custom-radio {
  padding: 0;
  margin: 0;
}

.custom-radio .custom-control-input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.custom-radio .custom-control-label {
  display: block;
  padding: 0.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #000;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

/* Responsive styles */
@media (max-width: 576px) {
  .attendance-option {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* holiday home page */
#upcomingHolidays {
  margin-top: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}
#upcomingHolidays h3 {
  color: #ffffff;
  background-color: #4CAF50;
  padding: 15px 20px;
  margin: 0;
  font-size: 18px;
}
.holidays-container {
  padding: 15px;
  display: flex;
  justify-content: space-between;
}
.holiday-card {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  margin: 0 5px;
  transition: all 0.3s ease;
}
.holiday-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.holiday-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #4CAF50;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px;
  margin-right: 10px;
}
.date-number {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}
.date-month {
  font-size: 14px;
  text-transform: uppercase;
}
.holiday-info {
  flex: 1;
}
.holiday-name {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 2px;
}
.holiday-day {
  font-size: 12px;
  color: #666666;
}

/* location */

/* Location Card Styles */
.location-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.location-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.location-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.location-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
}

.location-header h3 i {
  color: #3498db;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.location-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.location-status i {
  font-size: 10px;
}

.location-status.active i {
  color: #2ecc71;
}

.location-status.updating i {
  color: #f1c40f;
}

.refresh-location {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.refresh-location:hover {
  background-color: #ecf0f1;
  transform: rotate(30deg);
}

.refresh-location.rotating {
  animation: rotate 1s linear infinite;
}

#locationMap {
  height: 250px;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.location-details {
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.address-box, .coords-box, .accuracy-box, .update-time {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.address-box {
  grid-column: 1 / -1;
}

.location-details i {
  color: #3498db;
  font-size: 14px;
  margin-top: 3px;
}

.location-details p {
  margin: 0;
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.4;
}

.location-details small {
  color: #7f8c8d;
  font-size: 12px;
  line-height: 1.4;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .location-card {
      margin: 10px;
  }
  
  .location-details {
      grid-template-columns: 1fr;
  }
  
  #locationMap {
      height: 200px;
  }
}
/* Floating Map Button */
.floating-map-button {
  position: fixed;
  bottom: 80px; /* Adjust based on your navbar height */
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #3498db;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-map-button:hover {
  transform: scale(1.05);
  background-color: #2980b9;
}

.floating-map-button i {
  font-size: 24px;
}

/* Location Modal */
.location-modal {
  display: none;
  position: fixed;
  bottom: 80px; /* Same as floating button */
  right: 20px;
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 998;
  animation: slideIn 0.3s ease;
}

.location-modal.active {
  display: block;
}

.location-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.close-modal {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-modal:hover {
  background-color: #f0f0f0;
}

#locationMap {
  height: 200px;
  width: 100%;
  border-bottom: 1px solid #eee;
}

/* Animation */
@keyframes slideIn {
  from {
      transform: translateY(20px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Adjust existing location card styles */
.location-card {
  margin: 0;
  height: 100%;
}

.location-header {
  padding: 15px;
}

.location-details {
  padding: 15px;
  max-height: 200px;
  overflow-y: auto;
}

/* Media Queries */
@media (max-width: 768px) {
  .location-modal {
      width: calc(100% - 40px);
      max-height: calc(100vh - 140px); /* Account for navbar and padding */
  }
}

.location-error {
  color: #e74c3c;
  padding: 10px;
  border-radius: 8px;
  background-color: #fdf0ed;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.location-error i {
  color: #e74c3c;
  font-size: 16px;
}

.retry-button {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  padding: 5px 10px;
  margin-left: auto;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background-color: #edf2f7;
}

/* Add these styles for better error handling */
.location-error {
  background-color: #fff3f3;
  border: 1px solid #ffcdd2;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.location-error i.fa-exclamation-triangle {
  color: #f44336;
  margin-right: 8px;
}

.retry-button {
  background-color: #e3f2fd;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: #1976d2;
  margin-left: 10px;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background-color: #bbdefb;
}

/* Ensure the map container has a minimum height */
#locationMap {
  min-height: 200px;
  width: 100%;
  background: #f5f5f5;
}