/* Global Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;  /* Padding removed to avoid extra spacing */
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    height: 100vh; /* Full viewport height */
    flex-direction: column; /* Stack content vertically */
}

/* Form Styling */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}
/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    padding: 20px;
    margin: 15% auto;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}
/* Button Styling */
.button {
    display: inline-block;
    padding: 20px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    text-align: center;
}

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

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

button {
    margin-top: 10px;
}

label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;
}

input, select, button {
    width: 90%;
    padding: 6px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
table td {
    padding-left: 20px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Link Styling */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* User Information Section - Centered */
.user-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;  /* Adjust width */
    max-width: 300px; /* Limit the maximum width */
    margin-top: 20px;
    text-align: left; /* Align text to the left inside the box */
}

/* User Info Text Styling */
.user-info p {
    font-size: 16px;
    margin: 10px 0;
}

.user-info strong {
    font-weight: bold;
}

/* Profile Buttons Styling */
.profile-buttons {
    margin-top: 20px;
    text-align: center;
}

/* Register Button Styling */
.register-container .button {
    display: inline-block;
    padding: 10px 10px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.register-container .button:hover {
    background-color: #0056b3;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    text-align: center;
}

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

/* Centering the Welcome Message and Buttons */
.welcome-container {
    text-align: center; /* Center the text */
}

.welcome-container h1 {
    margin-bottom: 20px;  /* Space below the welcome message */
}

/* Styling the Header and Footer */
header, footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
}

header h1, footer h1 {
    margin: 0;/* Global Styling */
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f9;
        margin: 0;
        padding: 0;  /* Padding removed to avoid extra spacing */
        display: flex;
        justify-content: center; /* Centers content horizontally */
        align-items: center; /* Centers content vertically */
        height: 100vh; /* Full viewport height */
        flex-direction: column; /* Stack content vertically */
    }
    
    /* Form Styling */
    form {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 300px;
    }
    
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }
    
    input, select, button {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    button {
        background-color: #007BFF;
        color: white;
        border: none;
        cursor: pointer;
    }
    
    button:hover {
        background-color: #0056b3;
    }
    
    /* Link Styling */
    a {
        color: #007BFF;
        text-decoration: none;
    }
    
    a:hover {
        text-decoration: underline;
    }
    
    /* User Information Section - Centered */
    .user-info {
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 80%;  /* Adjust width */
        max-width: 500px; /* Limit the maximum width */
        margin-top: 20px;
        text-align: left; /* Align text to the left inside the box */
    }
    
    /* User Info Text Styling */
    .user-info p {
        font-size: 16px;
        margin: 10px 0;
    }
    
    .user-info strong {
        font-weight: bold;
    }
    
    /* Profile Buttons Styling */
    .profile-buttons {
        margin-top: 20px;
        text-align: center;
    }
    
    .button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #007BFF;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        margin-right: 10px;
        text-align: center;
    }
    
    .button:hover {
        background-color: #0056b3;
    }
    
    /* Centering the Welcome Message and Buttons */
    .welcome-container {
        text-align: center; /* Center the text */
    }
    
    .welcome-container h1 {
        margin-bottom: 20px;  /* Space below the welcome message */
    }
    
    /* Styling the Header and Footer */
    header, footer {
        text-align: center;
        padding: 10px;
        background-color: #333;
        color: white;
    }
    
    header h1, footer h1 {
        margin: 0;
    }
    
    /* Input Focus Styling */
    input:focus, select:focus, button:focus {
        outline: none;
        border-color: #007BFF;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }
    
}

/* Input Focus Styling */
input:focus, select:focus, button:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.button-container {
    display: flex;
    gap: 20px; /* Space between buttons */
}

button {
    padding: 5px 10px;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button[name="update"] {
    background-color: #007BFF; /* Blue for Update */
}

button[name="delete"] {
    background-color: #FF5733; /* Red for Cancel */
}

button:hover {
    opacity: 0.8;
}

/* Adding more space between buttons */
.button + .button {
    margin-top: 20px; /* Adds space between the buttons */
}



