/* Custom CSS for TestSimPro */

/* Import Tailwind CSS from CDN as fallback */
@import url('https://cdn.tailwindcss.com');

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-pattern {
    background-image: 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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Ensure DaisyUI components work */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-outline {
    background-color: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.btn-ghost {
    background-color: transparent;
    color: #374151;
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: #f3f4f6;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-circle {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-outline {
    background-color: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Footer styles */
.footer {
    background-color: #f8fafc;
    padding: 2.5rem 0;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Navbar styles */
.navbar {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-start, .navbar-center, .navbar-end {
    display: flex;
    align-items: center;
}

/* Menu styles */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-horizontal {
    flex-direction: row;
}

.menu-horizontal .menu-item {
    margin-right: 1rem;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 12rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* Avatar styles */
.avatar {
    position: relative;
    display: inline-block;
}

/* Utility classes */
.text-primary { color: #3b82f6; }
.text-secondary { color: #10b981; }
.text-accent { color: #f59e0b; }
.text-white { color: white; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }

.bg-base-100 { background-color: white; }
.bg-base-200 { background-color: #f8fafc; }

/* Responsive design */
@media (max-width: 768px) {
    .navbar-center {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
}

/* Ensure proper spacing and layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Grid layouts */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
}

/* Typography */
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Colors */
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-500 { background-color: #10b981; }
.bg-purple-500 { background-color: #8b5cf6; }
.bg-orange-500 { background-color: #f59e0b; }
.text-blue-100 { color: #dbeafe; }
.text-green-100 { color: #dcfce7; }
.text-purple-100 { color: #ede9fe; }
.text-orange-100 { color: #fed7aa; }

/* Shadows */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Border radius */
.rounded-full { border-radius: 9999px; }
.rounded-box { border-radius: 0.5rem; }

/* Padding and margins */
.p-10 { padding: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Links */
.link { color: #3b82f6; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-hover:hover { text-decoration: underline; }

/* Dividers */
.divider { height: 1px; background-color: #e5e7eb; margin: 1rem 0; }

/* Opacity */
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* Sticky positioning */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* Hidden/visible */
.hidden { display: none; }

/* Join utility */
.join { display: flex; }
.join-item:not(:first-child) { margin-left: -1px; }
.join-item:not(:last-child) { margin-right: -1px; }
.join-item:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.join-item:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.join-item:not(:first-child):not(:last-child) { border-radius: 0; }

/* Input styles */
.input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
}

.input-bordered {
    border-color: #d1d5db;
}

.input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Flex utilities */
.flex-1 { flex: 1 1 0%; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }

/* Text utilities */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.leading-tight { line-height: 1.25; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover effects */
.hover\:bg-white:hover { background-color: white; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:bg-primary:hover { background-color: #3b82f6; }
.hover\:border-primary:hover { border-color: #3b82f6; }
