/* style.css */
body {
    font-family: sans-serif;
}

h1 {
    text-align: center;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#box-container {
    width: 700px;
    height: 500px;
    border: 2px solid black;
    position: relative;
    margin-bottom: 20px;
}

.draggable-object {
    width: 80px;
    height: 40px;
    background-color: lightblue; /* Default color */
    border: 1px solid black;
    position: absolute;
    cursor: move;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s ease; /* Smooth color transitions */
}

.draggable-object.dragging {
    opacity: 0.7;
}

/* Axes (visual only) - These are optional for visual aid */
.axis {
    position: absolute;
    background-color: #ccc;
}

.x-axis {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.y-axis {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.axis-label {
    position: absolute;
    font-size: 12px;
    color: #666;
}

.x-label {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.y-label {
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}
/* --- Popup Styles --- */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid black;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Ensure it's on top */
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative; /* Add relative positioning */
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.popup-content label {
    font-weight: bold;
}

.popup-content input[type="text"],
.popup-content input[type="number"],
.popup-content input[type="date"],
.popup-content textarea,
.popup-content select {
    padding: 5px;
    border: 1px solid #ccc;
}

.popup-content button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.popup-content button#cancel-object-button,
.popup-content button#cancel-edit-object-button {
    background-color: #f44336;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2em; /* Adjust size as needed */
    color: red; /* Adjust color as needed */
    position: absolute; /* Position the icon button */
    top: 10px; /* Adjust top position */
    right: 10px; /* Adjust right position */
}

.icon-button:hover {
    color: darkred;
}

@media (max-width: 768px) {
    /* Styles for mobile devices */
    #box-container {
        width: 95vw;
        height: 70vh;
    }

    #daily-task-list {
        width: 90vw;
        top: auto;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .draggable-object {
        width: 100px; /* Larger for touch */
        height: 50px; /* Larger for touch */
        font-size: 16px; /* Larger font */
    }

    .popup {
        width: 90vw; /* Wider popup */
        max-width: 400px; /* Maximum width */
    }

    .popup-content {
        padding: 10px; /* Less padding */
    }

    .popup-content input[type="text"],
    .popup-content input[type="number"],
    .popup-content input[type="date"],
    .popup-content textarea,
    .popup-content select {
        font-size: 16px; /* Larger font */
    }

    .popup-content button {
        font-size: 16px; /* Larger font */
        padding: 10px 15px; /* Larger padding */
    }
}

