
/* Dashboard styles */
.dashboard {
    display: none; /* Hidden by default, shown after login */
    width: 100%;
    height: 100vh;
    background-color: #f9fafb;
    flex-direction: column;
}

/* Header styles */
.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    background-color: #f9fafb;
    color: rgb(85, 85, 85);
    padding: 0;
    height: 64px;
}
#user-header {
  align-items: center;
  background-color: #1c4c5b;
  color: white;
  text-align: left;
  width: 100%;
  padding: 2px 6px;
  border-radius: 12px;
  margin-bottom: 4px;
  font-size: 14px;
}

#schedule-container {
  width: 100%;
  height: 70px;
  padding: 6px;
  background-color: #dddcdc;
  border-radius: 12px;
  font-size: 10px;
  display: block;
  float: left;
}
.schedule-title {
  display:block;
  align-items: center;
  text-align: left;
  font-size:14px;
  font-weight: bold;
  padding: 2px
}

.schedule-hours-cell {
  width: 25%;
  tex-align: center;
  display:block;
  float: left;
}

.schedule-cell-time{
  font-weight: bold;
}

.date-time-container{
  display: block;
  float:left;
  width: 100%
}

#current-datetime{
  height: 90px;
  padding-top: 12px;
}
#current-datetime p {
  float:left;
  width: 100%;
  margin: 0;
}
#current-datetime small {
  color: gray;
  font-size: 11px;
}
.header-logo, .logo-container{
    display: block;
    text-align: center;
}

.header-text {
  text-align: left;
  font-size: 16px;
  width: 100%;
  line-height: 8px;
  padding: 22px 0;
  color:black;
  font-weight: bold;
}

.header-text small {
  font-size: 12px;
  font-weight: lighter;
  color: gray;
}

.header-logo img {
    width: 64px;
    height: 64px;
    margin-right: 8px;
}

.header-logo p {
    font-size: 14px;
    margin: 0;
}

.user-profile {
    display: block;
    align-items: center;
    text-align: center;
    padding: 6px;
}

#user-image img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 4px 12px 4px 4px;
}
.user-profile p {
    font-size: 8px;
    text-wrap: nowrap;
}

.user-menu {
  display: block;
  align-items: center;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  line-height: 42px;
}

/* Main content styles */
.dashboard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
    background-color: #f1f1f1;
}

/* muestra un spinner */
.lds-ellipsis {
    /* change color here */
    color: #1c4c5b
  }
  .lds-ellipsis,
  .lds-ellipsis div {
    box-sizing: border-box;
  }
  .lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-ellipsis div {
    position: absolute;
    top: 33.33333px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: currentColor;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }
  .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
  }
  .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
  }
  .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
  }
  .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
  }
  @keyframes lds-ellipsis1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes lds-ellipsis3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }
  @keyframes lds-ellipsis2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(24px, 0);
    }
  }
  /* fin spinner */

.timer-container {
    background-color: #f9fafb;
    padding: 20px;
    text-align: center;
    width: 320px;
    max-width: 400px;
    min-height: 474px;
}
.date-time-container {
  height: 140px;
}

.timer-info {
  float: left;
  background-color: white; 
  border-radius: 8px;
  padding: 0 14px
}

.time {
    font-size: 18px;
    color: #2e3f85;
    margin-bottom: 5px;
}

.date {
  font-size: 24px;
  font-weight: bold;
}

.week {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

table.ts-table {
  width: 100%;
  font-size: 12px;
}
.ts-table td {
  text-align: left;
}
.ts-table td.right {
  text-align: right;
}
#ts-status{
  font-weight: bold;
}
#ts-start{
  font-weight: bold;
}

.time-progress-bar{
  height:20px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid lightgray;
  margin-bottom:4px;
  overflow: hidden;
}
#time-progress-value{
  background-color: lightgray;
  height: 18px;
  border-radius: 0px;
}
.time-progress-text{
  color:gray;
  font-size: 12px;
}

.table-container, .time-status{
 float:left;
 width:100%; 
}

.mini-panel {
  float: left;
  width: 100%;
  background-color: #f9fafb;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 11px;
}
.panel {
  float: left;
  width: 100%;
  background-color: white;
  font-size: 12px;
  padding-bottom: 8px;
}
.mini-panel-left, .mini-panel-right, .panel-left, .panel-right{
  float: left;
  width: 50%;
  color: gray;
}
.mini-panel-left span, .mini-panel-right span{
  font-size: 12px;
  color: black;
  line-height: 18px;
}
.mini-panel-left, .panel-left{
  text-align: left;
}
.mini-panel-right, .panel-right{
  text-align: right; 
}
.panel-left, .panel-right {
  padding: 6px 0;
  
}
.mini-panel .btn {
  color: #2e3f85;
  font-size: 14px;
  line-height: 30px;
}

.mini-panel.alert-message {
  border: 1px solid #fbdfdf;
  text-align: left;
  background-color: #fdf2f2;
  padding: 18px;
  line-height: 16px;
}
.mini-panel.alert-message .note {
  color: #e24546;
  font-size: 10px;
}
.note-title {
  margin-bottom: 8px;
}
.entry-button {
    background-color: #2e3f85;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    transition: background-color 0.3s;
    width: 100%;
    height: 42px;
}
.entry-button.button-play, .entry-button.button-restart{
    background-color: #2e3f85;
    color: white;
}
.entry-button, .entry-button.button-play:hover, .entry-button.button-restart:hover {
    background-color: #223069;
}
.entry-button.button-pause {
    background-color: #f1831b;
    color: white;
}
.entry-button.button-pause:hover {
    background-color: #f1831b;
}
.entry-button.button-stop {
    background-color: #dc3545;
    color: white;
}
.entry-button.button-stop:hover {
    background-color:#a52834;
}


.entry-button i {
    margin-right: 8px;
}

/* Footer styles */
.dashboard-footer {
    display: block;
    justify-content: center;
    padding: 15px;
}

#footer-actions {
  width: 100%;
  text-align: right;
}

#location {
  float: left;
  text-align: center;
  width: 100%;
}

#location span {
  font-size: 10px;
  color: gray;
}

#action_buttons {
  height: 145px;
  text-align: center;
  float:left;
  width: 100%;
}

.management-button {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 20px;
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    height: 26px;
}

.management-button i {
    margin-left: 8px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.location i {
    margin-right: 5px;
}

.no-connection {
  color:white;
  text-align: center;
  padding: 12px;
  background-color:red; 
  position:absolute;
  width:100%; 
  bottom: 0
}

#workplace {
  display: flex;
  width: 100%;
  float:left;
  border: 1px solid lightgray;
  height: 42;
  line-height: 32px;
  margin-top: 12px;
  cursor: pointer;
}
.workplace-control {
  display:flex;
  height: 100%;
}
#workplace-selector{
  flex: 1;
  text-align: left;
  padding: 4px 12px;
  font-size: 14px;
}
#workplace-selector.disabled{
  background-color: lightgray;
}
.workplace-button{
  float:right;
  padding: 4px 10px;
  /*border-left: 1px solid lightgray;*/
  color: gray;
  width: 38px;
}

#time-percent-text {
  color: black;
  position: absolute;
  transform: translate(-50%);
  font-size: 12px;
  line-height: 20px; 
}

/* Responsive styles */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 0;
    }
    .dashboard-content {
        padding: 0;
    }
    .timer-container {
        min-height: 100%;
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    #user-header {
      padding: 12px;
      height: 44px;
      border-radius: 0;
      margin-bottom: 12px;
    }
    #schedule-container {
      border-radius: 0;
    }
    .date-time-container {
        width: 100%;
    }

}