.auth-wrapper {
    padding: 40px 0;
}

.auth-wrapper .container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 5em;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form label {
    margin-top: 10px;
}

.auth-form input {
    padding: 8px;
    margin-bottom: 10px;
}

.auth-form button {
    padding: 10px;
    background: #ff5100;
    color: white;
    border: none;
    cursor: pointer;
}

.auth-form .switch-auth {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
}

.auth-form .switch-auth a {
    color: #0073e6;
    text-decoration: underline;
    cursor: pointer;
}

.hidden {
    display: none;
}

.error-msg {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.success-msg {
    color: green;
    font-size: 0.9em;
    margin-top: 5px;
}

.password-requirements {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.hidden {
    display: none;
}

.tab-dropdown {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 4px;
}

.tabcontent {
    display: none;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#main-content {
    margin-top: 2em;
}

.data-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1% 1% 1%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1% 12px 1%;
}

.login-loader-class{
  /* no display here */
  margin:1rem auto;         /* centers inside the form */
  border:16px solid #f3f3f3;
  border-radius:50%;
  border-top:16px solid #ff5100;
  border-right:16px solid white;
  border-bottom:16px solid #ff5100;
  border-left:16px solid white;
  width:120px;height:120px;
  animation:spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden{display:none;}

@media (max-width: 768px) {
    .data-tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .data-tabs {
        display: flex;
        flex-direction: column; /* stack tabs vertically */
        width: 100%; /* optional, full width */
    }
    .data-tabs button {
        width: 100%; /* full width buttons */
        margin-bottom: 4px; /* small gap between buttons */
    }

    .top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #date-filter {
        display: flex;
        flex-direction: column;
    }

    #date-filter input {
        margin-bottom: 8px;
    }

    .date-buttons {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
    }

    .logout-wrapper {
        width: 100%;
    }

    .logout-wrapper button {
        width: 100%;
    }

    .tab-dropdown {
        width: 100%;
    }
}