/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 15px;
    vertical-align: middle;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4A5568;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Drag and Drop Styles */
.project[draggable="true"] {
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project[draggable="true"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.projects-section {
    min-height: 100px;
    padding: 10px;
    border: 2px dashed transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.projects-section.drag-over {
    border-color: #4A5568;
    background-color: rgba(74, 85, 104, 0.05);
}

/* Hidden state for Other Projects */
.projects-section.hidden {
    display: none;
}

/* Visual feedback for drag operations */
.drop-zone {
    position: relative;
}

.drop-zone::after {
    content: "Drop here to move project";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.drop-zone.drag-over::after {
    opacity: 1;
}

/* Smooth animations */
.project {
    transition: all 0.3s ease;
}

.projects-section {
    transition: all 0.3s ease;
}