/**
 * Admin Custom Styles - Cleopatra-inspired enhancements for Tailwind
 */

/* ============ GRADIENT UTILITIES ============ */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* ============ CUSTOM SHADOWS ============ */
.shadow-primary {
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.shadow-primary-lg {
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* ============ ANIMATIONS ============ */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

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

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ============ CUSTOM SIDEBAR ENHANCEMENTS ============ */
.admin-nav-link-enhanced {
    position: relative;
    overflow: hidden;
}

.admin-nav-link-enhanced::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    height: 70%;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

.admin-nav-link-enhanced:hover::before,
.admin-nav-link-enhanced.active::before {
    transform: translateY(-50%) scaleY(1);
}

/* ============ CUSTOM BUTTONS ============ */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-gradient:active {
    transform: translateY(0);
}

/* Ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::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-ripple:hover::before {
    width: 300px;
    height: 300px;
}

/* ============ FORM ENHANCEMENTS ============ */
.input-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* ============ CARD ENHANCEMENTS ============ */
.card-enhanced {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-gradient-border {
    position: relative;
    background: white;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem 0.5rem 0 0;
}

/* ============ TAG PILLS ============ */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tag-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-pill-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2) rotate(90deg);
}

.tag-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.875rem;
    min-height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.02));
    border-radius: 0.625rem;
    margin-bottom: 0.75rem;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.tag-pills-container:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.03));
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.375rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    animation: slideUp 0.2s ease;
}

.tag-suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-suggestion-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08), transparent);
    color: #667eea;
}

.tag-suggestion-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

/* ============ TABLE ENHANCEMENTS ============ */
.table-enhanced tbody tr {
    transition: all 0.2s ease;
}

.table-enhanced tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.04), transparent);
    transform: scale(1.001);
}

/* ============ MODAL ENHANCEMENTS ============ */
.modal-backdrop {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content-enhanced {
    animation: slideUp 0.3s ease;
}

/* ============ STAT CARDS ============ */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ BADGE ENHANCEMENTS ============ */
.badge-gradient {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* ============ SCROLLBAR STYLING ============ */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* Dark mode */
.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

/* ============ LOADING STATES ============ */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 0%, rgba(102, 126, 234, 0.1) 50%, #f1f5f9 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ============ UTILITY CLASSES ============ */
.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
                      linear-gradient(135deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 768px) {
    .card-enhanced:hover {
        transform: none;
    }
    
    .btn-gradient:hover {
        transform: none;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .gradient-text,
    .stat-value {
        -webkit-text-fill-color: #667eea;
        color: #667eea;
    }
}
