body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 0;
}

main {
    padding: 20px;
}

.intro {
    text-align: center;
}

.intro p {
    margin-bottom: 20px;
    font-size: 1.2em;
}
a {
    color: #007bff;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #007bff;
    border-radius: 5px;
    margin-right: 10px;
}

a:hover {
    background-color: #007bff;
    color: white;
}

footer {
    flex: 0 0 auto;
    margin-top: auto;
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
}


/* CSS for register.html */
/* Target main content area for some basic styling */
main {
    padding: 20px;
}

/* Style the registration form section */
.register-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin: 0 auto;  
    max-width: 400px;  
}

/* Style form labels and inputs */
.register-form label {
    display: block;  /* Make labels appear on separate lines */
    margin-bottom: 5px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* Style the submit button */
.register-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Style button hover effect */
.register-form button[type="submit"]:hover {
    background-color: #0069d9;
}

/* Style the login form section */
.login-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin: 0 auto;
    max-width: 400px; 
}

/* Style form labels and inputs */
.login-form label {
    display: block;
    margin-bottom: 5px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* Style the submit button */
.login-form .button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.login-form .button:hover {
    text-decoration: none;
}

/* Style button hover effect */
.login-form button[type="submit"]:hover {
    background-color: #0069d9;
}

.login-form a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.8em;
    display: block;
    margin-top: 10px;
}

.login-form a:hover {
    text-decoration: underline;
    color: white;
}

/* Style the add expense form section */
.add-expense-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin: 0 auto;  
    max-width: 500px;
}

/* Style form labels and inputs */
.add-expense-form label {
    display: block;
    margin-bottom: 5px;
}

.add-expense-form input[type="text"],
.add-expense-form input[type="number"],
.add-expense-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

.add-expense-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

.add-expense-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: vertical;
    margin-bottom: 15px;
}

/* Style the submit button */
.add-expense-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Style button hover effect */
.add-expense-form button[type="submit"]:hover {
    background-color: #0069d9;
}

/* Style the edit expense form section */
.edit-expense-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin: 0 auto;  
    max-width: 500px;
}

.edit-expense-form label {
    display: block;
    margin-bottom: 5px;
}

.edit-expense-form input[type="text"],
.edit-expense-form input[type="number"],
.edit-expense-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

.edit-expense-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

.edit-expense-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    resize: vertical;
    margin-bottom: 15px;

}

/* Style the submit button */
.edit-expense-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Style button hover effect */
.edit-expense-form button[type="submit"]:hover {
    background-color: #0069d9;
}

.edit-expense-form {
    border-color: #cccccc;
}

/* Style the view expenses section */
.view-expenses {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    margin: 0 auto;
    max-width: 800px;
}

.view-expenses table {
    width: 100%;
    border-collapse: collapse; 
}

.view-expenses th,
.view-expenses td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left; 
}

.view-expenses thead {
    background-color: #f2f2f2; 
}

.view-expenses button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;  
    margin-right: 10px; 
}

.view-expenses button:hover {
    background-color: #f2f2f2;
}

/* CSS for responsiveness */
@media only screen and (max-width: 768px) {
    body {
        width: 100;
        position:;
    }

    .main-btn {
        display: flex;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
      width: 100%;  /* Set full width for inputs on small screens */
    }

    .login-form button {
        font-size: 16px; 
        padding: 10px 20px;
    }

    .view-expenses thead tr th {
        display: flex;
    }

    table {
        width: 100%; /* Set table width to 100% */
    }
}

/* Styles for medium screens (tablets) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
/* Adjust styles for tablets here */

    .container {
        width: 70%;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        font-size: 16px;
    }
}

/* Styles for large screens (desktops) */
@media only screen and (min-width: 1024px) {
    .container {
        width: 60%;
    } 
}


