/* Reset some default styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e7eff6;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 15px;
}

.container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

h1, h2 {
    color: #005f73;
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

form .form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border: 1px solid #dfe4ea;
    padding: 10px;
    border-radius: 4px;
}

form .form-group label {
    margin-right: 10px;
    flex: 0 0 90px;
    font-weight: bold;
}

form .form-group input {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: transparent;
}

button, input[type=submit] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #0077b6;
    color: white;
    cursor: pointer;
    margin-top: 20px;
}

button:hover, input[type=submit]:hover {
    background-color: #005f73;
}

nav, .logout-section {
    text-align: center;
    margin-top: 20px;
}

nav a, .logout-section a {
    color: #0077b6;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover, .logout-section a:hover {
    text-decoration: underline;
}

.alert {
    color: #f44336;
    text-align: center;
    margin-bottom: 20px;
}

/* Icons */
.icon {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.username-icon:before {
    content: "\1F464"; /* Unicode for user icon */
}

.email-icon:before {
    content: "\2709"; /* Unicode for email icon */
}

.password-icon:before {
    content: "\1F512"; /* Unicode for lock icon */
}

.balance{
    text-align: center;
    font-weight: 600;
    color: #28a745;
    font-size: 20px;
}
.balance-icon:before {
    content: "\1F4B0"; /* Unicode for money bag icon */
}
.card-content h2{
    text-decoration: solid;
    padding: 15px 25px;
    font-size: 20px;

}
/* Logout Button */
.btn-logout {
    background-color: #ffffff;
    color: #0077b6;
    padding: 5px 15px;
    border: 1px solid #0077b6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    text-decoration: none; /* If using <a> tags */
}

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

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    font-size: 16px;
    margin: 15px 0;
}

.stats > div {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    width: 45%;
    text-align: center;
}

/* Actions Section */
.actions {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Blue Button */
.btn-blue {
    background-color: #0077b6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-blue:hover {
    background-color: #005f73;
}
/* Add or update the following styles in your styles.css file */

/* General styles */
/* styles.css */

/* Reset some basic elements */
body, h1, nav {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

/* Header Styles */
.main-header {
    background-color: #007bff; /* Blue background */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* Space between logo and nav items */
    align-items: center; /* Center items vertically */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
}

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

.main-nav .btn {
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    margin-left: 10px; /* Space between buttons */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none; /* Remove borders */
    outline: none; /* Remove focus outline */
    cursor: pointer; /* Cursor pointer on hover */
    font-size: 16px;
}

.btn-primary {
    background-color: #0056b3; /* Darker blue for login */
    color: white; /* White text */
}

.btn-primary:hover {
    background-color: #004080; /* Even darker blue on hover */
}

.btn-secondary {
    background-color: #6c757d; /* Grey for register */
    color: white; /* White text */
}

.btn-secondary:hover {
    background-color: #5a6268; /* Darker grey on hover */
}

/* Navigation Styles */
.navigation {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navigation .logo img {
    height: 50px; /* Adjust as needed */
}

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

.navigation .nav-items .btn,
.navigation .nav-items .btn-logout {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Primary button used for Login */
.navigation .nav-items .btn-primary {
    background-color: #0056b3;
    color: #fff;
}

.navigation .nav-items .btn-primary:hover {
    background-color: #004080;
}

/* Secondary button used for Register */
.navigation .nav-items .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.navigation .nav-items .btn-secondary:hover {
    background-color: #5a6268;
}

/* Logout button styling */
.navigation .nav-items .btn-logout {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.navigation .nav-items .btn-logout:hover {
    background-color: #fff;
    color: #0056b3;
}


/* Add or update these styles in your styles.css file */

.btn {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-left: 10px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}
.admin-container {
    padding: 20px;
}
.admin-header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
}
.user-list {
    margin-bottom: 30px;
}
.user-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.user-item h3 {
    margin-top: 0;
}
.action-buttons {
    text-align: right;
}
.action-buttons button {
    margin-left: 10px;
}
.transactions-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
}
.transaction-item {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}
/* Activation/Deactivation button styles */
.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}
.alert {
    color: red; /* or any other styling you prefer */
    /* additional styling for the alert message */
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px; /* Adjust the max-width as needed */
    margin: 40px auto; /* Center the container with automatic margins */
    padding: 40px;
    display: flex;
    flex-direction: column; /* Stack children vertically */
}

.admin-header {
    background-color: #158ac4cf;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    margin-top: 580px;
}

.admin-content {
    display: flex;
    justify-content: space-between; /* Space between the child elements */
    margin-top: 20px;
}

.user-list,
.transactions-list {
    width: 48%; /* Slightly less than half the parent container's width */
    background-color: #f9f9f9; /* Light grey background */
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
}

.user-list h3 {
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
    color: #007bff;
    font-weight: 500;
    font-style: italic;
}

.user-list h4,
.transactions-list h4 {
    border-bottom: 2px solid #0077b6; /* Add a bottom border for the title */
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.user-item,
.transaction-item {
    padding: 10px;
    border-bottom: 1px solid #e1e1e1; /* subtle separator */
}

.user-item:last-child,
.transaction-item:last-child {
    border-bottom: none; /* Remove bottom border for the last item */
}

.action-buttons button {
    padding: 5px 15px;
    margin-right: 5px;
}

.btn-warning {
    background-color: #ff2407;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

/* If you need to adjust the buttons further, add more styles here */

/* Responsive adjustments */
@media (max-width: 992px) {
    .admin-content {
        flex-direction: column; /* Stack the lists on top of each other */
    }

    .user-list,
    .transactions-list {
        width: 100%; /* Each child takes full width */
        margin-bottom: 20px; /* Add space between the lists */
    }
}
