/*!
 * ICT Notes - Interactive Effects
 * Mengikuti standar Morvin Template v2.0.0
 * Tanpa gradient, border minimal (hanya untuk table)
 */

/* ========================================
   GLOBAL INTERACTIVE STYLES
   ======================================== */

/* Smooth transitions untuk semua elemen interaktif */
* {
    transition: all 0.2s ease;
}

/* ========================================
   CARD INTERACTIVE EFFECTS
   ======================================== */

/* Interactive Card Effects - Morvin Style */
.interactive-card {
    cursor: pointer;
    position: relative;
    border-radius: 8px !important;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: all 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hover Shadow Cards - Morvin Style */
.hover-shadow {
    cursor: pointer;
    border-radius: 8px !important;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ========================================
   BUTTON INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Button Effects - Morvin Style */
.btn {
    position: relative;
    border-radius: 6px !important;
    font-weight: 500;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Primary Button - Morvin Pastel Style */
.btn-primary {
    background-color: #b5c7f0;
    color: #2c3e50;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #9bb3ea;
    color: #2c3e50;
}

/* Success Button - Morvin Pastel Style */
.btn-success {
    background-color: #b8e6d3;
    color: #2c3e50;
    font-weight: 500;
}

.btn-success:hover {
    background-color: #a3ddc7;
    color: #2c3e50;
}

/* Warning Button - Morvin Pastel Style */
.btn-warning {
    background-color: #f7ddb0;
    color: #2c3e50;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #f4d09a;
    color: #2c3e50;
}

/* Info Button - Morvin Pastel Style */
.btn-info {
    background-color: #b8dbf5;
    color: #2c3e50;
    font-weight: 500;
}

.btn-info:hover {
    background-color: #a3ceef;
    color: #2c3e50;
}

/* Danger Button - Morvin Pastel Style */
.btn-danger {
    background-color: #f7c6c6;
    color: #2c3e50;
    font-weight: 500;
}

.btn-danger:hover {
    background-color: #f3b1b1;
    color: #2c3e50;
}

/* Secondary Button - Morvin Pastel Style */
.btn-secondary {
    background-color: #d5d7dc;
    color: #2c3e50;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #c6c9d0;
    color: #2c3e50;
}

/* ========================================
   FORM INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Form Controls - Morvin Style */
.form-control {
    border-radius: 6px !important;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #495057;
}

.form-control:focus {
    border-color: #b5c7f0;
    box-shadow: 0 0 0 2px rgba(181, 199, 240, 0.25);
    background: #ffffff;
}

/* Enhanced Select Controls - Morvin Style */
.form-select {
    border-radius: 6px !important;
    background: #ffffff;
    cursor: pointer;
    color: #495057;
}

/* ========================================
   AVATAR INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Avatar dengan animasi */
.avatar-xs, .avatar-sm, .avatar-md, .avatar-lg {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hover-shadow:hover .avatar-title i,
.interactive-card:hover .avatar-title i {
    animation: iconBounce 0.6s ease-in-out;
}

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

/* ========================================
   TABLE INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Table Rows dengan hover effect */
.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(181, 199, 240, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Enhanced Table Button Groups */
.btn-group .btn {
    border-radius: 6px !important;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    z-index: 10;
}

/* ========================================
   BADGE INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Badge Effects - Morvin Style */
.badge {
    border-radius: 4px !important;
    font-weight: 500;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: default;
}

/* Badge Colors - Morvin Pastel Style */
.badge.bg-success {
    background-color: #b8e6d3 !important;
    color: #2c3e50 !important;
}

.badge.bg-danger {
    background-color: #f7c6c6 !important;
    color: #2c3e50 !important;
}

.badge.bg-warning {
    background-color: #f7ddb0 !important;
    color: #2c3e50 !important;
}

.badge.bg-info {
    background-color: #b8dbf5 !important;
    color: #2c3e50 !important;
}

.badge.bg-secondary {
    background-color: #d5d7dc !important;
    color: #2c3e50 !important;
}

/* ========================================
   DROPDOWN INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Dropdowns - Morvin Style */
.dropdown-menu {
    border-radius: 6px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 4px !important;
    margin: 2px 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(181, 199, 240, 0.1) !important;
    color: #495057 !important;
    transform: translateX(4px);
}

/* ========================================
   PAGINATION INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Pagination */
.pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px !important;
    background: #ffffff;
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: rgba(181, 199, 240, 0.1) !important;
    color: #495057 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 199, 240, 0.2);
}

.pagination .page-item.active .page-link {
    background-color: #b5c7f0 !important;
    color: #2c3e50 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(85, 110, 230, 0.4);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa !important;
    color: #adb5bd !important;
}

/* ========================================
   ALERT INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Alerts - Morvin Style */
.alert {
    border-radius: 6px !important;
    padding: 12px 16px;
}

.alert-success {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.alert-info {
    background-color: #d4edda !important;
    color: #155724 !important;
}

/* ========================================
   PROGRESS BAR EFFECTS
   ======================================== */

/* Enhanced Progress Bars */
.progress {
    border-radius: 6px !important;
    background-color: #f8f9fa;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    border-radius: 6px !important;
    background-color: #b5c7f0;
    position: relative;
    overflow: hidden;
}

/* ========================================
   BREADCRUMB INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Breadcrumbs */
.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #495057;
    background-color: rgba(181, 199, 240, 0.1);
    transform: translateX(2px);
}

/* ========================================
   SIDEBAR INTERACTIVE EFFECTS
   ======================================== */

/* Enhanced Sidebar Menu Items */
.metismenu li a {
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
}

.metismenu li a:hover {
    background-color: rgba(181, 199, 240, 0.1) !important;
    transform: translateX(4px);
}

.metismenu li.mm-active > a {
    background-color: rgba(181, 199, 240, 0.15) !important;
}

/* ========================================
   SEARCH INPUT EFFECTS
   ======================================== */

/* Enhanced Search Inputs */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    padding-right: 45px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    transition: all 0.3s ease;
}

.search-input-wrapper:hover .search-icon {
    color: #b5c7f0;
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   LOADING STATES
   ======================================== */

/* Loading Spinner */
.spinner-border {
    border-color: rgba(181, 199, 240, 0.1);
    border-top-color: #b5c7f0;
}

/* Pulse loading untuk cards */
.loading-pulse {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* ========================================
   RESPONSIVE TOUCH EFFECTS
   ======================================== */

/* Touch device optimizations */
@media (max-width: 768px) {
    .hover-shadow:active,
    .interactive-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Reduced animations for mobile */
    .hover-shadow:hover .avatar-title i,
    .interactive-card:hover .avatar-title i {
        animation: none;
        transform: scale(1.1);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Enhanced focus states untuk accessibility */
*:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(181, 199, 240, 0.25) !important;
    border-radius: 4px;
}

/* Reduce motion untuk users yang prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

/* Enhanced Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #b5c7f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #9bb3ea;
}

/* ========================================
   PRINT STYLES
   ======================================== */

/* Optimized untuk printing */
@media print {
    .hover-shadow,
    .interactive-card,
    .btn {
        transform: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .badge {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Cursor utilities */
.cursor-pointer {
    cursor: pointer !important;
}

/* Progress bar sizes */
.progress-sm {
    width: 60px;
    height: 8px;
}

.progress-md {
    height: 20px;
}

/* Enhanced Pastel Color Utilities */
.bg-primary-pastel {
    background-color: #b5c7f0 !important;
    color: #2c3e50 !important;
}

.bg-success-pastel {
    background-color: #b8e6d3 !important;
    color: #2c3e50 !important;
}

.bg-warning-pastel {
    background-color: #f7ddb0 !important;
    color: #2c3e50 !important;
}

.bg-danger-pastel {
    background-color: #f7c6c6 !important;
    color: #2c3e50 !important;
}

.bg-info-pastel {
    background-color: #b8dbf5 !important;
    color: #2c3e50 !important;
}

.bg-secondary-pastel {
    background-color: #d5d7dc !important;
    color: #2c3e50 !important;
}

/* Text color utilities untuk pastel theme */
.text-primary-pastel {
    color: #7490cc !important;
}

.text-success-pastel {
    color: #6bb896 !important;
}

.text-warning-pastel {
    color: #c89c4a !important;
}

.text-danger-pastel {
    color: #e57373 !important;
}

.text-info-pastel {
    color: #64b5f6 !important;
}

/* Avatar title colors untuk consistency */
.avatar-title.bg-primary-subtle {
    background-color: rgba(181, 199, 240, 0.1) !important;
    color: #7490cc !important;
}

.avatar-title.bg-success-subtle {
    background-color: rgba(184, 230, 211, 0.1) !important;
    color: #6bb896 !important;
}

.avatar-title.bg-warning-subtle {
    background-color: rgba(247, 221, 176, 0.1) !important;
    color: #c89c4a !important;
}

.avatar-title.bg-danger-subtle {
    background-color: rgba(247, 198, 198, 0.1) !important;
    color: #e57373 !important;
}

.avatar-title.bg-info-subtle {
    background-color: rgba(184, 219, 245, 0.1) !important;
    color: #64b5f6 !important;
}

.avatar-title.bg-secondary-subtle {
    background-color: rgba(213, 215, 220, 0.1) !important;
    color: #8e9aaf !important;
}
