/* Beautiful Icon Enhancements for LMS */

/* 1. Enhanced Dashboard Icons */
.stat-icon.books { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-icon.authors { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-icon.categories { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-icon.available { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.stat-icon.issued { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.stat-icon.members { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

/* 2. Animated Icons - REMOVED - All icons are static */
.stat-icon {
    /* NO transitions - completely static */
    position: relative;
    overflow: hidden;
}

/* Removed ripple effect animation - too distracting */

/* 3. Icon Hover Effects */
.control-icon {
    position: relative;
    overflow: hidden;
}

.control-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.control-icon:hover::after {
    width: 100%;
    height: 100%;
}

/* 4. Action Button Icons */
.btn i {
    transition: all 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

.btn-success i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 5. Table Action Icons */
.table-action-btn {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.table-action-btn.edit {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.table-action-btn.delete {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.table-action-btn.view {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* 6. Navigation Icons */
.nav-icon {
    position: relative;
    transition: all 0.3s ease;
}

.nav-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-icon:hover::before {
    opacity: 1;
}

/* 7. Status Indicator Icons */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.status-indicator.available {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: statusPulse 2s infinite;
}

.status-indicator.issued {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-indicator.damaged {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 8. Loading Icons */
.loading-icon {
    animation: rotate 1s linear infinite;
}

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

/* 9. Success/Error Icons */
.icon-success {
    color: #10b981;
    animation: bounce 0.6s ease;
}

.icon-error {
    color: #ef4444;
    animation: shake 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 10. Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.fab i {
    transition: transform 0.3s ease;
}

.fab:hover i {
    transform: rotate(180deg);
}
