/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean, modern font */
    background-color: #f4f7f6; /* Soft light gray-blue background */
    margin: 0;
    padding: 0;
    color: #333;
    text-align: center;
}

/* Navigation Menu */
.navbar {
    background-color: #2c3e50; /* Dark Blue-Gray */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 16px;
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.3s; /* Smooth hover effect */
}

.navbar a:hover {
    background-color: #34495e; /* Slightly lighter on hover */
}

/* Main Content Box */
.container {
    width: 70%;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Soft shadow for depth */
    min-height: 500px;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee; /* Subtle underline */
    padding-bottom: 10px;
    display: inline-block;
}

/* Forms */
form {
    display: inline-block;
    text-align: left;
    background-color: #fff;
    padding: 20px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

label {
    font-weight: 600;
    color: #555;
    margin-top: 15px;
    display: block;
}

input, select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box; /* Fixes padding issues */
}

input:focus {
    border-color: #3498db; /* Blue border when clicking */
    outline: none;
}

/* Buttons */
button {
    background-color: #3498db; /* Nice Blue */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* Secondary Button (for Cancel/Back) */
button.secondary {
    background-color: #95a5a6;
}

/* Product Cards (For Search Page) */
.product-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px); /* Moves up slightly on hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card img-placeholder {
    display: block;
    height: 120px;
    background-color: #ecf0f1;
    margin-bottom: 15px;
    border-radius: 4px;
    line-height: 120px;
    color: #bdc3c7;
}

/* Tables */
table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Add this to the bottom of style.css */

/* Ensures the body takes up the full screen height */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Pushes the footer/bottom down and allows centering */
.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center; /* Horizontal Center */
    align-items: center;     /* Vertical Center */
    width: 100%;
}

/* Specific styling for the Centered Form Container */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* Limits width so it looks like a nice card */
    text-align: center;
    border: 1px solid #e0e0e0;
}

.login-container h1 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.login-container input {
    width: 100%; /* Full width inside the card */
    margin-bottom: 15px;
}

.login-container button {
    width: 100%; /* Full width button */
    padding: 12px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #2980b9;
}