/* style.css */

/* --- General Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A more modern font */
    line-height: 1.6;
    background-color: #f0f2f5; /* Light greyish-blue background */
    color: #333; /* Dark text for readability */
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
}

/* --- Header Styles --- */
header {
    background: linear-gradient(to right, #007bff, #0056b3); /* Blue gradient */
    color: #fff;
    padding: 1.5rem 0; /* Increased padding */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

header h1 {
    margin-bottom: 0.75rem; /* Adjust margin */
    font-size: 2.5rem; /* Larger heading */
    letter-spacing: 1px; /* Slightly spaced letters */
}

nav a {
    color: #e0f2f7; /* Lighter blue for links */
    text-decoration: none;
    margin: 0 15px; /* More spacing */
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Add transform transition */
    font-weight: bold; /* Bold links */
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* --- Main Container & Items --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto; /* More margin */
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* More space between items */
    justify-content: center;
}

.item {
    background-color: #ffffff; /* Pure white background for items */
    padding: 25px; /* Increased padding */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    flex: 1 1 320px; /* Slightly larger preferred width for items */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effects */
}

.item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.item h2 {
    color: #007bff; /* Blue for headings */
    margin-bottom: 10px;
}

.item p {
    color: #555; /* Slightly lighter text for paragraphs */
}

/* --- Drop Zone Styles --- */
.drop-zone {
    border: 2px dashed #007bff; /* Blue dashed border */
    background-color: #e6f7ff; /* Light blue background */
    min-height: 180px; /* Taller drop zone */
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff; /* Blue text */
    font-size: 1.4em; /* Larger text */
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex: 1 1 320px;
    font-weight: bold;
}

.drop-zone.dragover {
    background-color: #d1f0d1; /* Softer green on dragover */
    border-color: #28a745; /* Green border */
    color: #28a745;
}

/* Styling for the item being dragged */
.item.dragging {
    opacity: 0.6; /* Slightly more opaque while dragging */
    border: 2px dashed #0056b3; /* Darker blue dashed border */
    box-shadow: 0 0 0 rgba(0,0,0,0); /* Remove shadow while dragging for cleaner look */
}

/* --- Footer Styles --- */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #343a40; /* Darker grey for footer */
    color: #adb5bd; /* Lighter grey text */
    margin-top: 40px; /* Space above footer */
    font-size: 0.9em;
}

/* --- Media Queries (Adjusted for new layout) --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 8px 0;
        padding: 6px 12px;
    }
    .container {
        padding: 15px;
        gap: 20px;
    }
    .item {
        flex-basis: 100%;
        padding: 20px;
    }
    .drop-zone {
        min-height: 120px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    .item h2 {
        font-size: 1.3rem;
    }
    .item p {
        font-size: 0.95rem;
    }
}