/* Professional Methods Pro Styles */

:root {
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--indigo-600);
    color: white;
}

.btn-primary:hover {
    background: var(--indigo-700);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: white;
    color: var(--indigo-600);
    border: 1px solid var(--indigo-600);
}

.btn-outline:hover {
    background: var(--indigo-50);
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.stat-card {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.card-gradient {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
}

/* Method Cards */
.method-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.method-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
}

.method-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--indigo-100);
    color: var(--indigo-700);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* Forms */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--gray-50);
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sidebar */
.sidebar.floating-sidebar {
    position: fixed !important;
    top: 6rem !important; /* Below header (h-16 = 4rem) + 2rem margin */
    left: 1rem !important;
    width: 14rem !important;
    height: fit-content !important; /* Only as tall as content */
    max-height: none !important;
    bottom: auto !important;
    background: white;
    padding: 0 !important;
    overflow: visible !important; /* No scrolling needed */
    z-index: 40;
}

.sidebar.floating-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar.floating-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar.floating-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar.floating-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.content-area {
    margin-left: 0;
    padding: 1.5rem;
    min-height: calc(100vh - 5rem);
    padding-bottom: 4rem; /* Extra padding for footer */
}

@media (min-width: 1024px) {
    .content-area {
        margin-left: 16rem; /* Sidebar width (14rem) + left margin (1rem) + right margin (1rem) */
        padding: 2rem;
        padding-bottom: 4rem; /* Extra padding for footer */
    }
    
    .sidebar.floating-sidebar {
        left: 1rem;
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 0 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    gap: 0.75rem;
}

.sidebar-link:hover {
    background: var(--gray-50);
    color: var(--indigo-600);
}

.sidebar-link.active {
    background: var(--indigo-50);
    color: var(--indigo-600);
    font-weight: 600;
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

/* Prose for content */
.prose {
    color: var(--gray-700);
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin: 0.5rem 0;
}

.prose a {
    color: var(--indigo-600);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--indigo-700);
}

.prose blockquote {
    border-left: 4px solid var(--indigo-500);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-600);
    font-style: italic;
}

.prose code {
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: var(--gray-900);
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 1023px) {
    .sidebar.floating-sidebar {
        top: 5rem !important;
        left: 1rem !important;
        height: fit-content !important;
        max-height: none !important;
        bottom: auto !important;
        transform: translateX(-120%);
        transition: transform 0.3s ease-in-out;
    }
    
    .content-area {
        margin-left: 0;
        padding: 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
}