/* THE HIVE - Status Tracker Styles */

:root {
    --primary-pink: #e91e8c;
    --primary-purple: #8b3dff;
    --active-green: #10b981;
    --inactive-gray: #9ca3af;
    --bg-light: #f9fafb;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.back-to-home {
    position: absolute;
    left: 30px;
    top: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0.9;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.back-to-home:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.header .logo {
    height: 80px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header .subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    padding: 60px 20px;
    min-height: calc(100vh - 300px);
}

/* Messages */
.message {
    text-align: center;
    padding: 40px 20px;
}

.message.error {
    color: #dc2626;
    font-weight: 600;
}

.spinner {
    border: 4px solid rgba(139, 61, 255, 0.1);
    border-left-color: var(--primary-purple);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Outperformer Card */
.outperformer-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.outperformer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Past Employee Card Styling */
.outperformer-card.past-employee {
    opacity: 0.85;
    padding-top: 50px;
}

.past-employee-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.hexagon-wrapper {
    flex-shrink: 0;
}

.outperformer-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.profile-info {
    flex: 1;
}

.outperformer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.outperformer-role {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.4;
}

/* Toggle Section */
.toggle-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Primary Toggles Container (Large - Mentoring & Performance Coach) */
.primary-toggles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Primary Toggle Item (Large) */
.toggle-item.primary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Secondary Toggles Container (Small - 5 toggles) */
.secondary-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
    background: rgba(249, 250, 251, 0.5);
    border-radius: 10px;
}

/* Small Toggle Item */
.toggle-item.small-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.toggle-item.small-toggle:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 2px 4px rgba(139, 61, 255, 0.1);
}

/* Active Employee Toggle - Special Styling (deprecated - now small) */
.active-employee-toggle {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.05), rgba(139, 61, 255, 0.05));
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(139, 61, 255, 0.2);
}

.active-employee-toggle .toggle-title {
    color: var(--primary-purple);
    font-size: 14px;
}

.toggle-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 10px 0;
}

/* Review Section (Checkboxes at bottom) */
.review-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.review-checkbox:hover {
    background-color: rgba(249, 250, 251, 0.8);
}

.review-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--active-green);
    flex-shrink: 0;
}

.review-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    user-select: none;
}

.review-label strong {
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: none;
}

.review-checkbox input[type="checkbox"]:checked + .review-label {
    color: var(--active-green);
    font-weight: 700;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toggle-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

/* Small Toggle Title */
.toggle-title-small {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-dark);
}

.toggle-status {
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s;
}

.toggle-status.active {
    color: var(--active-green);
}

.toggle-status.inactive {
    color: var(--inactive-gray);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

.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: var(--inactive-gray);
    transition: 0.3s;
    border-radius: 32px;
}

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

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--active-green);
}

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

.toggle-slider:hover {
    opacity: 0.9;
}

/* Toggle Switch Small (for secondary toggles) */
.toggle-switch-small {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider-small {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--inactive-gray);
    transition: 0.3s;
    border-radius: 24px;
}

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

.toggle-switch-small input:checked + .toggle-slider-small {
    background-color: var(--active-green);
}

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

.toggle-slider-small:hover {
    opacity: 0.9;
}

/* Disabled state during save */
.toggle-switch.saving,
.toggle-switch-small.saving {
    opacity: 0.6;
    pointer-events: none;
}

/* Statistics Section */
.statistics {
    margin-top: 60px;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.mentoring {
    border-color: var(--active-green);
}

.stat-card.performance {
    border-color: var(--primary-purple);
}

.stat-card.turnover {
    border-color: #dc2626;
}

.stat-card.turnover .stat-percentage {
    color: #dc2626;
}

/* Additional Analytics Section */
.additional-stats {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid var(--border-color);
}

.stats-section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.stats-grid-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card-secondary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.stat-card-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(139, 61, 255, 0.1);
    border-color: var(--primary-purple);
}

.stat-icon-secondary {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.stat-content-secondary {
    flex: 1;
}

.stat-label-secondary {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.stat-value-secondary {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-value-secondary .stat-total-secondary {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    margin-left: 3px;
}

.stat-percentage-secondary {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-purple);
}

.stat-icon {
    font-size: 50px;
    line-height: 1;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-value .stat-total {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-gray);
    margin-left: 5px;
}

.stat-percentage {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card.mentoring .stat-percentage {
    color: var(--active-green);
}

.stat-card.performance .stat-percentage {
    color: var(--primary-purple);
}

.stat-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 60px;
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }

    .header .subtitle {
        font-size: 14px;
    }

    .header .logo {
        height: 60px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .outperformer-card {
        padding: 20px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .outperformer-image {
        width: 120px;
        height: 120px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-icon {
        font-size: 40px;
    }

    .stat-value {
        font-size: 36px;
    }

    .stat-percentage {
        font-size: 24px;
    }

    .secondary-toggles {
        grid-template-columns: 1fr;
    }

    .stats-grid-secondary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card-secondary {
        padding: 20px;
    }

    .stat-icon-secondary {
        font-size: 32px;
    }

    .stat-value-secondary {
        font-size: 28px;
    }

    .stat-percentage-secondary {
        font-size: 18px;
    }

    .stats-section-title {
        font-size: 18px;
    }

    .back-to-home {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }

    .header .logo {
        height: 60px;
    }

    .header h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .header .subtitle {
        font-size: 16px;
    }
}
