* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
}

.btn-home {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-home:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.controls select, .controls input, .controls button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.controls button {
    background: #007bff;
    color: white;
    cursor: pointer;
}

.controls button:hover {
    background: #0056b3;
}

.main-content {
    display: flex;
    gap: 20px;
}

.activities-panel, .schedule-panel {
    flex: 1;
}

.activities-panel h3, .schedule-panel h3 {
    margin-bottom: 10px;
    color: #555;
}

.list-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.list-controls input, .list-controls button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.list-controls button {
    background: #28a745;
    color: white;
    cursor: pointer;
}

.activity-list {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

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

.list-title {
    font-weight: bold;
    color: #333;
}

.add-activity {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.add-activity input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-activity button {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    cursor: grab;
    border: 1px solid #90caf9;
    text-align: center;
    position: relative;
}

.activity:hover {
    background: #bbdefb;
}

.activity.dragging {
    opacity: 0.5;
}

.activity .edit-btn, .activity .delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
}

.activity .delete-btn {
    right: 20px;
    color: #dc3545;
}

.schedule-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #fafafa;
}

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

.schedule-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.delete-schedule {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.schedule-slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-slot {
    min-height: 50px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.time-slot.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
}

.time-slot .time-label {
    font-weight: bold;
    color: #666;
    min-width: 80px;
}

.time-slot .activity-assigned {
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    flex: 1;
    margin-left: 10px;
    text-align: center;
}
