/* ========================================
   PREMIUM LIBRARY MANAGEMENT TEMPLATE STYLES
   (Theme Aligned Sky-Blue & Coral Aesthetics)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --sm-primary: #51b5fb;
    --sm-primary-hover: #008cff;
    --sm-secondary: #6366f1;
    --sm-accent-green: #10b981;
    --sm-accent-amber: #f59e0b;
    --sm-accent-purple: #8b5cf6;
    --sm-accent-coral: #ff4b72;
    --sm-dark: #0f172a;
    --sm-slate: #1e293b;
    --sm-muted: #64748b;
    --sm-light: #f8fafc;
    --sm-card-border: rgba(226, 232, 240, 0.8);
    --sm-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--sm-font);
}

/* Hero Section with Mesh Gradient & Floating Elements */
.lib-hero-wrapper {
    position: relative;
    padding: 90px 0 70px;
    background: radial-gradient(circle at 15% 15%, rgba(81, 181, 251, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
                #ffffff;
    overflow: hidden;
}

.lib-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(81, 181, 251, 0.15), transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.lib-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(81, 181, 251, 0.1);
    border: 1px solid rgba(81, 181, 251, 0.3);
    border-radius: 50px;
    color: #008cff;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(81, 181, 251, 0.05);
}

.lib-pulse-dot {
    width: 9px;
    height: 9px;
    background: var(--sm-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.lib-hero-heading {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--sm-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
}

.lib-gradient-brand {
    background: linear-gradient(135deg, #51b5fb 0%, #008cff 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lib-hero-subtext {
    font-size: 1.15rem;
    color: var(--sm-muted);
    line-height: 1.75;
    margin-bottom: 35px;
}

/* Glassmorphism Browser Window Dashboard Preview */
.lib-window-mockup {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.lib-window-mockup:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 80px rgba(81, 181, 251, 0.18), 0 0 0 1px rgba(81, 181, 251, 0.2);
}

.lib-window-bar {
    background: var(--sm-dark);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lib-window-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.lib-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.lib-dot-red { background: #ff5f56; }
.lib-dot-yellow { background: #ffbd2e; }
.lib-dot-green { background: #27c93f; }

.lib-window-title {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* SM Dashboard Stat Cards Inside Mockup */
.sm-dashboard-inner {
    padding: 24px;
    background: #f8fafc;
}

.sm-header-banner {
    background: linear-gradient(135deg, #51b5fb 0%, #008cff 100%);
    border-radius: 16px;
    padding: 18px 22px;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(81, 181, 251, 0.25);
}

.sm-card-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sm-card-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.sm-card-box.blue-top::before { background: #008cff; }
.sm-card-box.green-top::before { background: var(--sm-accent-green); }
.sm-card-box.amber-top::before { background: var(--sm-accent-amber); }

.sm-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.sm-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.sm-card-icon-wrap.blue { background: rgba(81, 181, 251, 0.12); color: #008cff; }
.sm-card-icon-wrap.green { background: rgba(16, 185, 129, 0.12); color: var(--sm-accent-green); }
.sm-card-icon-wrap.amber { background: rgba(245, 158, 11, 0.12); color: var(--sm-accent-amber); }

.sm-card-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sm-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.sm-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sm-dark);
    margin: 0;
}

.sm-card-subtitle {
    font-size: 0.8rem;
    color: var(--sm-muted);
    margin-bottom: 16px;
}

.sm-action-flex {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.sm-pill-btn {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1.5px solid #008cff;
    color: #008cff;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.sm-pill-btn:hover {
    background: #008cff;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 140, 255, 0.25);
}

.sm-pill-btn.active-fill {
    background: #008cff;
    color: #ffffff;
}

.sm-pill-btn.active-fill:hover {
    background: #0076d6;
    border-color: #0076d6;
}

/* Feature Grid Cards */
.lib-glow-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.lib-glow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(81, 181, 251, 0.15);
    border-color: rgba(81, 181, 251, 0.4);
}

.lib-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
}

.lib-glow-card:hover .lib-icon-box {
    transform: scale(1.1) rotate(-4deg);
}

.lib-icon-box.blue { background: rgba(81, 181, 251, 0.15); color: #008cff; }
.lib-icon-box.emerald { background: rgba(16, 185, 129, 0.12); color: var(--sm-accent-green); }
.lib-icon-box.amber { background: rgba(245, 158, 11, 0.12); color: var(--sm-accent-amber); }
.lib-icon-box.purple { background: rgba(139, 92, 246, 0.12); color: var(--sm-accent-purple); }
.lib-icon-box.rose { background: rgba(244, 63, 94, 0.12); color: #f43f5e; }
.lib-icon-box.indigo { background: rgba(99, 102, 241, 0.12); color: var(--sm-secondary); }

.lib-card-h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sm-dark);
    margin-bottom: 12px;
}

.lib-card-p {
    font-size: 0.94rem;
    color: var(--sm-muted);
    line-height: 1.65;
    margin: 0;
}

/* Module Tabs Switcher */
.sm-nav-pills-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 24px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sm-nav-pills-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sm-nav-pills {
    display: inline-flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    gap: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.sm-pill-tab {
    border: none;
    background: transparent;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sm-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sm-pill-tab.active {
    background: linear-gradient(135deg, #51b5fb 0%, #008cff 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(81, 181, 251, 0.35);
}

/* Tables Styling matching plugin screenshot */
.sm-table-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Hide Scrollbar for Table Responsive Container */
.table-responsive {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.table-responsive::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sm-table-head-bar {
    background: linear-gradient(90deg, #51b5fb 0%, #008cff 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sm-export-bar {
    background: #475569;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-export-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sm-export-chip:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sm-table {
    width: 100%;
    border-collapse: collapse;
}

.sm-table th {
    background: #008cff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 12px 14px;
    border: 1px solid #0076d6;
    white-space: nowrap;
}

.sm-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #334155;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    white-space: nowrap;
}

.sm-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.sm-table tbody tr:hover td {
    background: #eff6ff;
}

/* Responsive Rules */
@media (max-width: 991.98px) {
    .lib-hero-wrapper {
        padding: 60px 0 50px;
    }
    .lib-hero-heading {
        font-size: 2.3rem;
    }
    .lib-hero-subtext {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    .lib-window-mockup {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .lib-hero-heading {
        font-size: 1.95rem;
    }
    .lib-live-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        margin-bottom: 18px;
    }
    .sm-dashboard-inner {
        padding: 16px;
    }
    .sm-header-banner {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .sm-card-box {
        padding: 18px;
    }
    .sm-card-val {
        font-size: 1.75rem;
    }
    .sm-pill-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .sm-export-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .sm-export-bar input {
        width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .lib-hero-heading {
        font-size: 1.7rem;
    }
    .lib-hero-wrapper {
        padding: 45px 0 35px;
    }
    .lib-window-title {
        max-width: 160px;
        font-size: 0.75rem;
    }
    .lib-window-bar {
        padding: 10px 14px;
    }
    .sm-card-box {
        margin-bottom: 12px;
    }
    .lib-glow-card {
        padding: 24px 18px;
    }
    .lib-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    .btn.common-btn {
        width: 100%;
        text-align: center;
    }
}
