/*
 * Teams Feature Styles
 * Styles for team management pages
 */

/* ===========================================
   ANIMATED TOGGLE WIDGET
   =========================================== */

.animated-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.animated-toggle input:checked + .toggle-slider {
    background-color: #28a745;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.animated-toggle input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

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

.animated-toggle input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hover effects */
.animated-toggle:hover .toggle-slider {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.animated-toggle:hover input:checked + .toggle-slider {
    background-color: #218838;
}

/* Loading state */
.animated-toggle.loading .toggle-slider:before {
    animation: toggle-loading 0.8s infinite;
}

@keyframes toggle-loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===========================================
   READINESS INDICATOR
   =========================================== */

.readiness-indicator.highlight-change {
    animation: readiness-highlight 1s ease-in-out;
}

@keyframes readiness-highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: rgba(40, 167, 69, 0.1); }
    100% { transform: scale(1); }
}
