/* General Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern, clean font */
    background-color: #f4f4f9; /* Soft light gray background */
    margin: 0;
    padding: 0;
    color: #333;
}

/* Container for aligning the content */
.container {
    width: 85%; /* Makes the container width 85% of the screen */
    max-width: 1200px;
    margin: 30px auto; /* Centers the container horizontally */
    padding: 30px;
    background-color: #ffffff; /* White background for the content */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    border-radius: 12px; /* Rounded corners */
}

/* Header Styling */
h1 {
    color: #003366; /* Dark blue color for the heading */
    text-align: center;
    font-size: 3rem; /* Larger, prominent heading */
    margin-bottom: 20px;
    font-weight: 600; /* Semi-bold for emphasis */
}

/* Form Styling */
form {
    display: grid;
    grid-gap: 20px; /* Increased space between form elements */
    padding: 30px;
    background-color: #f8f8f8; /* Light gray background for forms */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Label Styling */
label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

/* Input Fields, Select Dropdowns, and Buttons Styling */
input, select, button {
    padding: 12px; /* Increased padding for comfort */
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    background-color: #fafafa; /* Light background for input fields */
}

/* Button Styling */
button {
    background-color: #007bff; /* Bright blue for buttons */
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition on hover */
    padding: 14px;
}

button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

/* Links Styling */
a {
    color: #007bff; /* Bright blue for links */
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline; /* Adds an underline effect on hover */
}

/* Navigation Styling */
nav ul {
    list-style-type: none; /* Removes bullets */
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 10px 15px;
}

nav ul li a {
    color: #007bff;
    font-size: 1.1rem;
    font-weight: 600;
}

nav ul li a:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px; /* More space above the table */
}

table th, table td {
    text-align: left;
    padding: 15px; /* Added padding for readability */
    border: 1px solid #ddd;
}

/* Table Header Styling */
table th {
    background-color: #f1f1f1; /* Light gray for table headers */
    font-weight: 600;
}

/* Zebra Striping for Table Rows */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover Effect for Table Rows */
table tr:hover {
    background-color: #f0f0f0; /* Subtle hover effect on rows */
}

/* Error Message Styling */
#error-message {
    color: red;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    display: none;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background-color: #003366; /* Dark blue background for footer */
    color: white;
    margin-top: 30px;
    border-radius: 8px;
}

/* Footer Text */
footer p {
    margin: 0;
    font-size: 1rem;
}

/* Card Styling for Customer Display */
.customer-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.customer-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.customer-card h2 {
    color: #003366; /* Dark blue for headings */
    margin-bottom: 10px;
}

.customer-card p {
    color: #555; /* Lighter text for the paragraph */
    margin: 5px 0;
}

/* Card Header */
.customer-card-header {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Full-width container on small screens */
    }

    h1 {
        font-size: 2.2rem;
    }

    input, select, button {
        font-size: 1rem;
    }

    table th, table td {
        font-size: 0.9rem;
        padding: 12px;
    }

    /* Customer Card Adjustments for Small Screens */
    .customer-card {
        padding: 15px;
    }

    footer p {
        font-size: 0.9rem;
    }
}