/* Universal styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5; /* Light, neutral background */
    color: #333; /* Dark text for better readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation bar */
nav {
    width: 100%;
    height: auto;
    background-color: #ff5733; /* Vibrant orange for the nav */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    margin-bottom: 20px;
}

nav h1 {
    font-size: 2rem;
    color: white;
    margin: 0;
}

#logoutButton {
    border: none;
    background: transparent; /* Match the rest of the navbar */
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.profile-icon{
    width: 70px;
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
}

a {
    text-decoration: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ddd; /* Light hover effect */
}

/* Hero section */
.hero {
    text-align: center;
    margin: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff5733; /* Match nav color */
}

.hero p {
    font-size: 1.2rem;
    color: #555;
}

/* Login Section */
login {
    margin: auto;
    width: 50%;
    text-align: center;
}

login h1 {
    padding: 10px;
}

login form {
    margin: auto;
    width: 50%;
}

.centerText {
    margin: auto;
    text-align: center;
}

/* Exercise Section */
exercise {
    margin: auto;
    width: 50%;
    text-align: center;
}

exercise .center {
    display: block;
    margin: auto;
}


/* Section styling */
.section-bg {
    width: 80%;
    margin: 1rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    text-align: center;
}

.section-bg:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Elevated hover effect */
}

/* Forms */
form {
    background-color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

form label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

form input:focus {
    border-color: #ff5733;
    outline: none;
    box-shadow: 0 0 4px rgba(255, 87, 51, 0.4); /* Subtle glow */
}

form button {
    width: 100%;
    padding: 0.75rem;
    background-color: #ff5733;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #e04e2b; /* Darker shade on hover */
}

.workouts-dropdown {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.workouts-dropdown table {
    width: 100%;
    border-collapse: collapse;
}

.workouts-dropdown th,
.workouts-dropdown td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}


/* Comments Section */
.comments-section {
    margin-top: 2rem;
    width: 80%;
    margin: 2rem auto;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-header .username {
    font-weight: bold;
    color: #ff5733; /* Match the theme */
}

.comment-content {
    font-size: 1rem;
    line-height: 1.5;
}

.comment-date {
    font-size: 0.875rem;
    color: #666;
}


/* Cards */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* Tables */
table {
    width: 90%;
    margin: 2rem auto;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

th {
    background-color: #ff5733;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

tr:hover {
    background-color: #f9f9f9;
}

td {
    color: #555;
}

/* Buttons */
button {
    padding: 0.5rem 1rem;
    background-color: #ff5733;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e04e2b;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    table {
        width: 100%;
    }
}
