/* Enhanced Navigation Buttons Across Platform */

/* Global Button Improvements */
.btn, .btn-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Button Hover Effects */
.btn:hover, .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active, .btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Primary Buttons */
.btn-primary, .btn-primary-modern {
    background: linear-gradient(135deg, #00A651 0%, #0288D1 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-primary:hover, .btn-primary-modern:hover {
    background: linear-gradient(135deg, #009143 0%, #0277BD 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.3);
}

/* Secondary Buttons */
.btn-secondary {
    background: #f1f5f9;
    color: #1a1a1a;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1a1a1a;
    border-color: #cbd5e1;
}

/* Success Buttons */
.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Warning Buttons */
.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Danger Buttons */
.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Outline Buttons */
.btn-outline-primary {
    border: 2px solid #0288D1;
    color: #0288D1;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-outline-primary:hover {
    background: #0288D1;
    color: white;
    border-color: #0288D1;
}

.btn-outline-secondary {
    border: 2px solid #64748b;
    color: #64748b;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

.btn-outline-secondary:hover {
    background: #64748b;
    color: white;
    border-color: #64748b;
}

/* Navigation Buttons Specific Styles */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.navigation-buttons .btn {
    min-width: 150px;
    justify-content: center;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-nav a {
    color: #0288D1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #00A651;
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    color: #cbd5e1;
}

/* Action Button Groups */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00A651, #0288D1);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Button with Icon Improvements */
.btn i, .btn-modern i {
    font-size: 1rem;
}

/* Floating Action Buttons */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A651, #0288D1);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

/* Loading State for Buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

