/* Common Responsive CSS for Blog Management */

:root {
    --primary-gradient: linear-gradient(90deg, #5b42f3, #b01eff);
    --secondary-gradient: linear-gradient(135deg, #2B2B81, #4B49A5, #6F6BC6);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 10px 40px rgba(160, 160, 255, 0.3);
    --sidebar-width: 250px;
    --header-height: 70px;
    --transition-speed: 0.3s;
}



/* Layout Utilities */
.main-content-wrapper {
    transition: margin-left var(--transition-speed);
    padding: 20px;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (min-width: 992px) {
    .has-sidebar .main-content-wrapper {
        margin-left: var(--sidebar-width);
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050 !important;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content-wrapper {
        margin-left: 0 !important;
    }
}

/* Responsive Table Wrapper */
.responsive-table-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.table-responsive {
    border: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-radius: 20px;
}

.glass-card-sm {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Enhanced Gradients */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-primary-gradient {
    background: var(--primary-gradient);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(91, 66, 243, 0.2);
}

/* Avatar Utilities */
.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    flex-shrink: 0;
}

/* Sidebar Specifics */
.sidebar-link-active {
    background: rgba(91, 66, 243, 0.1);
    color: #5b42f3 !important;
    border-right: 3px solid #5b42f3;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}