/* Modern Notes Grid Styles */
.note-modern-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.text-navy{
    color: var(--primary-blue);
}
.btn-navy{
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    &:hover{
        color: #fff;
        background: var(--accent-orange);
        transform: scaleX(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        -webkit-transform: scaleX(1.05);
        -moz-transform: scaleX(1.05);
        -ms-transform: scaleX(1.05);
        -o-transform: scaleX(1.05);
}
}

.note-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.note-img-wrap {
    overflow: hidden;
    border-radius: 8px;
    height: 350px; /* Standard height for cards */
    background: #f8f9fa;
    position: relative;
}

.note-img-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Overlay */
.note-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 48, 96, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
}

.note-modern-card:hover .note-card-overlay {
    opacity: 1;
}

.note-modern-card:hover img {
    transform: scale(1.05);
}

.page-count-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
}

/* Locked State Decoration */
.locked-state {
    cursor: not-allowed;
    background: #f1f1f1 !important;
}

.blur-note {
    filter: blur(8px) grayscale(100%);
    opacity: 0.6;
}

.lock-overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Download Toolbar Sticky Fix */
.sticky-top {
    transition: all 0.3s ease;
}


/* Responsive Toolbar Fixes */
@media (max-width: 768px) {
    /* Sticky position top adjustment for mobile if header height changes */
    .sticky-top {
        top: 30px !important; 
    }
    
    .extra-small {
        font-size: 0.7rem;
    }

    /* Buttons ko mobile par thoda compact dikhane ke liye */
    .btn-sm {
        font-size: 0.75rem;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Tooltip/Title truncate for very small screens */
@media (max-width: 400px) {
    .btn-sm span {
        display: none; /* Bahut choti screen par text hide karke sirf icon dikhayega */
    }
}

/* Responsive Card Typography */
@media (max-width: 767px) {
    .responsive-title {
        font-size: 1.5rem; /* Mobile par thoda chota heading */
        line-height: 1.3;
    }
    
    .responsive-text {
        font-size: 0.9rem; /* Choti screen par readability ke liye */
    }

    .cta-btn {
        font-size: 1rem;
        padding: 12px 20px !important;
    }
}

/* Animations and Hover */
.cta-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}