/* ============================================
   MODERN DESIGN ENHANCEMENTS
   Sweet & Professional Look for Barracuda Admin
   ============================================ */

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
.btn, .card, .badge, .nav-link, .dropdown-item, .page-link {
    transition: all 0.3s ease;
}

.form-control, .form-select, input[type="search"] {
    transition: all 0.3s ease;
}

/* ===== IMAGE HOVER EFFECTS ===== */
img, .image-wrapper {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

img:hover, .image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ===== BUTTON RIPPLE EFFECT ===== */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* ===== CARD GLOW EFFECT ===== */
.card {
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.card:hover::before {
    opacity: 0.3;
}

/* ===== TABLE ROW STYLING ===== */
.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody td {
    border-color: #f1f3f5 !important;
}

/* ===== BADGE ENHANCEMENTS ===== */
.badge {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== FORM INPUT FOCUS ===== */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

/* ===== SEARCH INPUT ENHANCEMENT ===== */
input[type="search"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

input[type="search"]:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: none;
    animation: fadeInUp 0.3s ease;
}

.dropdown-item {
    border-radius: 8px;
    margin: 4px 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* ===== MODAL ENHANCEMENTS ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.4s ease;
}

.modal-header {
    border-bottom: 2px solid #e9ecef;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-footer {
    border-top: 2px solid #e9ecef;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* ===== ALERT MESSAGES ===== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: slideInRight 0.4s ease;
}

/* ===== PROGRESS BARS ===== */
.progress {
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    animation: slideInRight 1s ease;
}

/* ===== TOOLTIP ===== */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea !important;
    transform: translateY(-2px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '→';
    color: #667eea;
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 768px) {
    .page-header-title {
        font-size: 1.5rem;
    }
    
    .page-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

