/* Bootstrap Optimizations and Custom Components for Jukebox5D */

/* Bootstrap Component Enhancements */

/* Button Enhancements */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1E90FF, #1874CD);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1874CD, #1560B8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #1E90FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 12px;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(30, 144, 255, 0.05));
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: rgba(248, 249, 250, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 15px 15px !important;
}

/* List Group Enhancements */
.list-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.list-group-item:hover {
    background: rgba(30, 144, 255, 0.05);
    transform: translateX(5px);
    padding-left: 1.5rem;
}

.list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.list-group-item.active {
    background: linear-gradient(135deg, #1E90FF, #1874CD);
    border-color: #1E90FF;
    color: white;
}

/* Form Enhancements */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #1E90FF;
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
    background: white;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1E90FF;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #1E90FF;
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

.form-check-input {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #1E90FF;
    border-color: #1E90FF;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05), rgba(30, 144, 255, 0.02));
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 20px 20px;
}

.modal-backdrop {
    backdrop-filter: blur(5px);
}

/* Badge Enhancements */
.badge {
    border-radius: 20px;
    padding: 0.5em 0.75em;
    font-weight: 500;
    font-size: 0.75em;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #1E90FF, #1874CD) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

/* Progress Bar Enhancements */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: rgba(30, 144, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #1E90FF, #1874CD);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border-left: 4px solid;
}

.alert-primary {
    background: rgba(30, 144, 255, 0.1);
    color: #1874CD;
    border-left-color: #1E90FF;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left-color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left-color: #e74c3c;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #e67e22;
    border-left-color: #f39c12;
}

/* Navbar Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand {
    font-weight: 700;
    color: #1E90FF !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF !important;
}

.nav-link.active {
    background: rgba(30, 144, 255, 0.15);
    color: #1E90FF !important;
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
    transform: translateX(5px);
    padding-left: 1.5rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

/* Pagination Enhancements */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 2px solid transparent;
    border-radius: 8px;
    color: #1E90FF;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.page-link:hover {
    background: rgba(30, 144, 255, 0.1);
    border-color: #1E90FF;
    color: #1874CD;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #1E90FF, #1874CD);
    border-color: #1E90FF;
    color: white;
}

/* Table Enhancements */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(30, 144, 255, 0.05));
    border-bottom: 2px solid rgba(30, 144, 255, 0.1);
    font-weight: 600;
    color: #1874CD;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(30, 144, 255, 0.02);
    transform: scale(1.01);
}

/* Spinner Enhancements */
.spinner-border {
    border-width: 3px;
}

.spinner-border.text-primary {
    border-color: rgba(30, 144, 255, 0.3);
    border-top-color: #1E90FF;
}

/* Toast Enhancements */
.toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.toast-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.text-gradient {
    background: linear-gradient(135deg, #1E90FF, #1874CD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #1E90FF, #1874CD) 1;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Utilities */
@media (max-width: 576px) {
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}
