/* Floating Action Button for SLA Policy Creation */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.fab-main:active {
    transform: scale(0.95);
}

.fab-main .fab-icon {
    transition: transform 0.3s ease;
}

.fab-main.open .fab-icon {
    transform: rotate(45deg);
}

/* Floating submenu */
.fab-submenu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-submenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.fab-option:hover {
    transform: translateX(-5px);
}

.fab-option-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.fab-option-btn.policy {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.fab-option-btn.policy:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: scale(1.1);
}

.fab-option-btn.report {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.fab-option-btn.report:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: scale(1.1);
}

.fab-option-btn.dashboard {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.fab-option-btn.dashboard:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a85);
    transform: scale(1.1);
}

.fab-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Responsive design */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .fab-option-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .fab-label {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Animation for staggered appearance */
.fab-option:nth-child(1) {
    transition-delay: 0.1s;
}

.fab-option:nth-child(2) {
    transition-delay: 0.15s;
}

.fab-option:nth-child(3) {
    transition-delay: 0.2s;
}

/* Pulse animation for main button */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 123, 255, 0.6), 0 0 0 10px rgba(0, 123, 255, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    }
}

.fab-main.highlight {
    animation: pulse 2s infinite;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .fab-label {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }
}

/* Accessibility improvements */
.fab-main:focus,
.fab-option-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Screen reader support */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}