/* General Styles */
#user-time-tracker {
    text-align: center;
    font-family: sans-serif; /* Choose a suitable font */
}

/* 3D Circular Button */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px; /* Adjust as needed */
}
.circleb{
    width: 205px;
    height: 205px;
    border-radius: 50%;
    border-top: 2px dashed #ffcc00;
    border-right: 2px dashed #ffcc00;
    border-left: 2px dashed #202c3d;
    border-bottom: 2px dashed #202c3d;
    padding: 10px;
    animation: spin 10s infinite linear;
}
.circle {
    width: 200px; 
    height: 200px;
    border-radius: 50%;
    background-color: #202c3d;
    box-shadow: 
        0px 5px 10px rgba(0, 0, 0, 0.2), /* Outer shadow */
        inset 0px 2px 5px rgba(255, 255, 255, 0.1); /* Inner highlight */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    cursor: pointer;
    position: relative;     
    animation: spin 10s infinite reverse linear;
    width: 100%;
    border-radius: 100%;
}


   /* Keyframes for the spin animation */
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Apply animation to .circleb when the timer is running */
.circle.active .circleb {
    animation: spin 10s infinite linear; 
}

/* Disable animation when the timer is stopped */
.circle:not(.active) .circleb {
    animation: none; 
}



.circle:hover {
    transform: scale(1.05); /* Enlarge slightly on hover */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
}

.play-button {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    background-color: #f1c40f;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0px -2px 3px rgba(0, 0, 0, 0.2); 
}

.play-button i {
    color: #28354a;
    font-size: 20px; 
}

.circle #timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px; 
    color: white;
    display: none;
}

/* Stop Button */
#stop-timer {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

/* Checkin Button */
.checkin#submit-data {
    padding: 12px 28px;
    border-radius: 8px;
    border: navajowhite;
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 600;
}

.checkin#submit-data::after{
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 5px;
  pointer-events: none;
  background: linear-gradient( to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 2%
  );
}

/* Checkboxes */
#checkboxes {
    display: none;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
    justify-items: start;
    justify-content: space-between;
    align-items: start;
    column-gap: 10px;
    row-gap: 1em;
    font-size: 15px;
    font-family: 'Poppins';
    text-align: left;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the checkbox and label */
    margin-bottom: 10px;
}

/* Slide Button Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}


input:checked + .slider {
    background-color: #fff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #fff;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
     background-color: #494646;
}

.checkbox-label {
    margin-left: 10px;
}
.circle #timer-display {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 50px;

    display: flex; /* Use flexbox for vertical layout */
    flex-direction: column;
    align-items: center;
}

.timer-text {
    font-size: 16px; /* Adjust as needed */
    margin-bottom: 10px;
   opacity: 1;
}

.timer-time {
    font-size: 30px; /* Adjust as needed */
}

.timer-progress {
    font-size: 14px; /* Adjust as needed */
    margin-top: 10px;
}

/* Progress Bar (you'll need to update this with JavaScript) */
.progress-bar {
  width: 80%;
  height: 10px;
  background-color: #34495e;
  border-radius: 5px;
  margin: 10px auto;
  overflow: hidden; /* Hide excess fill during animation */
}

.progress-bar-fill {
  height: 100%;
  width: 10px; /* Fixed width of the "dot" */
  background-color: #f1c40f;
  border-radius: 50%; /* Make it a circle */
  position: relative; /* Allow positioning within the container */
  animation: dot-animate 2s linear infinite; /* Animation settings */
}

@keyframes dot-animate {
  0% {
    left: 0%; /* Start at the left edge */
  }
  50% {
    left: calc(100% - 10px); /* Move to the right edge (minus dot width) */
  }
  100% {
    left: 0%; /* Return to the left edge */
  }
}
.circle.active .button-text { 
    display: none; /* Hide the "GO" text when active */
}

.circle.active #timer-display {
    opacity: 1; 
}

.project-selection ul {
    list-style: none;
    width: 100%;
}


/* Responsiveness */
@media (max-width: 768px) { 
    .container {
        height: 200px; 
    }

    .circle {
        width: 200px;
        height: 200px;
    }

   

    .play-button {
        width: 40px;
        height: 40px;
    }

    .play-button i {
        font-size: 16px;
    }
    
    #checkboxes{
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: minmax(70px, auto);
    }
}