/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.board {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.column {
    background: #f5f5f5;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    flex: 1;
    transition: transform 0.3s ease-in-out;
}

.column:hover {
    transform: translateY(-10px);
}

h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #444;
}

/* Task Cards */
.tasks {
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    transition: background 0.3s;
}

.tasks:hover {
    background: #f0f0f0;
}

.card {
    background: #4caf50;
    color: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card:hover {
    transform: scale(1.05);
    background: #45a049;
}

.card .time {
    font-size: 12px;
    color: #ddd;
}
/* Improved Button & Input Alignment */
.input-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    
}

.task-input {
    margin-top: 10px;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.task-input:focus {
    border: 2px solid #4caf50;
    outline: none;
}

/* Button Styling with Consistent Height */
.add-task {
    margin-top: 10px;
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 12px 18px; /* Same height as input */
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px; 
    height: 46px;  /* Same as input height */
}

.add-task:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Icon inside the button for better look */
.add-task::before {
    content: "+";
    font-size: 18px;
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-wrapper {
        flex-direction: row;
        gap: 10px;
    }

    .task-input, .add-task {
        width: 100%;
    }
}

/* Context Menu */
.menu {
    position: absolute;
    display: none;
    background: #333;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.menu li {
    padding: 10px 15px;
    cursor: pointer;
    color: #fff;
    transition: background 0.3s;
}

.menu li:hover {
    background: #4caf50;
}

/* Drag-and-Drop Feedback */
.dragging {
    opacity: 0.5;
    transform: scale(1.05);
}

.drag-over {
    background: #ffeb3b;
    transition: background 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .board {
        flex-direction: column;
        gap: 15px;
    }
}
