

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
}


.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    min-height: 70px;
    background-color: #004080;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;

}

.top-filler,
.top-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}


.site-title {
    font-size: 2.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-right: 20px;
    white-space: nowrap;
}

.site-title:hover {
    text-decoration: none;
    cursor: pointer;
}

.logo {
    height: auto;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}


.fitbit-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 8px;
    text-align: center;
    margin-bottom: 7px;
}


.fitbit-title {
    margin-bottom: 24px;
}

.fitbit-btn {
    background: #00B0B9;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    align-content: center;
    padding: 0.8rem;
}



h1 {
    margin-bottom: 30px;
    color: #222;
    text-align: center;
}


.user-row {
    display: flex;
    background-color: white;
    margin-bottom: 10px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}


.user-row:hover {
    background-color: #e8f0fe;
}

.user-col {
    flex: 1;
}

.back-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: #e0e0e0;
}

.site-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #ccc;
    padding: 15px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    height: 40px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info {
    font-size: 1.1em;
}





/* Profile page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px;
}

.profile-name-block h2 {
    margin: 2px;
    align-items: center;

}

.sub-info {
    color: #666;
    font-size: 0.9rem;
}

.info-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-top: 0;
    color: #0077cc;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    margin-bottom: 6px;
}

.back-btn {
    display: inline-block;
    margin: 20px;
    padding: 8px 12px;
    background: #004080;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.back-btn:hover {
    background: #004080;
}


.delete-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #c0392b;
}

.custom-users-list {
    list-style: none;
    padding: 0;
}

.custom-users-list li {
    background: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
}



.assigned-user {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.assigned-user h3 {
    margin-top: 0;
    color: #333;
}


.assignment-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #f0f4f8;
    border-radius: 8px;
}

.assigned-user p {
    margin: 0.3rem 0;
}

.assign-form {
    margin-top: 2rem;
    padding: 1rem;
    background: #e9f7ef;
    border-radius: 8px;
}

.assign-form form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

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



@media (max-width: 600px) {
    .top-bar {
        display: flex;
        justify-content: center;
        background: /*linear-gradient(135deg, #ffffff 0%, #ffffff 8%,#004080 25%, #004080 75%, #ffffff 92%, #ffffff 100%)*/#004080;
        padding: 10px 20px;
    }
  
    .site-title {
      font-size: 1.2rem;
    }
  
    .logo {
      height: 30px;
    }
  }




/* Register Page Styling */


.error-message {
    background-color: #ffdddd;
    color: #a94442;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}






/* Log out button */
.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    float: right;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Settings Page */
.top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 20px;
}

.user-nav {
    display: flex;
    gap: 15px;
}

.settings-link {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 8px 12px;
    background-color: #f2f2f2;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.settings-link:hover {
    background-color: #e0e0e0;
}

.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-toggle {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 8px;
    color: #ffffff;
}

.settings-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 150px;
    margin-top: 5px;
}

.settings-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.settings-menu a:hover {
    background-color: #f0f0f0;
    border-radius: 8px;
}
















