/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #E5E5E7;
    border-radius: 10px;
}

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

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

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Teleprompter specific */
#prompter-text {
    transition: transform 0.1s linear;
}

/* Apple-style range input refinement */
input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    background: #333;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Lesson Active State */
.lesson-item.active {
    background-color: #F2F2F7;
    border-left: 3px solid black;
}

.module-card {
    transition: all 0.2s ease-in-out;
}

/* Loading Spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Better focus states */
input:focus, textarea:focus {
    outline: none;
}

/* Buttons hover effects */
button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.95);
}

/* Attachment items animation */
#attachments-list > div {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

#drop-zone {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#attachments-list {
    min-height: 20px;
}

/* Editor spacing */
#lesson-content {
    tab-size: 4;
}

/* Sales & Member Portal Styles */
#member-lesson-content {
    color: #4B5563;
    line-height: 1.8;
}

#member-video-placeholder {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}

.prose h1, .prose h2, .prose h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#member-motivation-box {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    animation: pulse-subtle 3s infinite;
}

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

#sales-view input:focus {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Hide scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* SaaS Specific Styles */
#landing-view h1 {
    background: linear-gradient(to bottom right, #000 30%, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#landing-view main {
    perspective: 1000px;
}

#landing-view .grid > div {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#landing-view .grid > div:hover {
    transform: translateY(-8px) scale(1.02);
}

#studio-nav {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* User Avatar focus state */
#user-profile-btn:focus {
    box-shadow: 0 0 0 2px black;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .grid-cols-12 {
        display: flex;
        flex-direction: column;
    }
    .col-span-4, .col-span-8 {
        width: 100%;
    }
    
    main {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
}
