/* Custom Properties */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* Spacing Utilities */
.pt-8 {
    padding-top: 5rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.mb-10 {
    margin-bottom: 6rem !important;
    float: left;
}

.ms-n5 {
    margin-left: -3rem !important;
}

.ms-n10 {
    margin-left: -6rem !important;
}

.content-space-t-2 {
    padding-top: 2rem;
}

.content-space-t-3 {
    padding-top: 3rem;
}

.content-space-t-lg-3 {
    padding-top: 3rem;
}

@media (min-width: 992px) {
    .content-space-t-lg-3 {
        padding-top: 5rem;
    }
}

.content-space-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.content-space-lg-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .content-space-lg-3 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Header */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.navbar-brand-logo {
    max-width: 150px;
    height: auto;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* Hero Section */
.lib-hero {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.lib-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 100%);
    z-index: -1;
}

.lib-hero h1 {
    font-weight: 700;
    line-height: 1.2;
}

.lib-hero .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Cards */
.card-ghost {
    background-color: transparent;
    border: 1px solid rgba(231, 234, 243, 0.7);
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.card-ghost:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.card-transition-zoom {
    overflow: hidden;
}

.card-transition-zoom-item {
    transition: all 0.3s ease;
}

.card-transition-zoom:hover .card-transition-zoom-item {
    transform: scale(1.1);
}

.card-img {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-top: 1px solid rgba(231, 234, 243, 0.7);
}

.card-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.card-pinned-top-end {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* List Styles */
.list-checked {
    list-style: none;
    padding-left: 0;
}

.list-checked-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.list-checked-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Avatar */
.avatar {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
}

/* Footer */
.bg-dark {
    background-color: var(--dark) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.link-light {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-light:hover {
    color: white;
}

.text-cap {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-nav {
        margin-bottom: 1rem;
    }

    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    }

    .lib-hero {
        text-align: center;
    }

    .ms-n5,
    .ms-n10 {
        margin-left: 0 !important;
    }
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}
