/* SellerStencil - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    color: #000000;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Gradient effects */
.gradient-text {
    background: linear-gradient(135deg, #000 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #000 0%, #666 100%) border-box;
    border: 2px solid transparent;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animation */
.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Pattern background */
.pattern-bg {
    background-color: #ffffff;
    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='%23000000' fill-opacity='0.03'%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");
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Stagger animation */
.stagger-animation > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-animation > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-animation > *:nth-child(8) { animation-delay: 0.8s; }

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: block;
    box-sizing: border-box;
    margin-bottom: 0;
    background-color: white;
    min-height: 2.75rem;
}
.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #000;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Form field containers */
.form-field {
    margin-bottom: 1.5rem !important;
    width: 100%;
    position: relative;
}

/* Grid layouts for forms */
.form-grid {
    display: grid !important;
    gap: 1.5rem !important;
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-grid-2 {
    grid-template-columns: 1fr !important;
}

.form-grid-3 {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .form-grid-3 {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
}

/* Override any conflicting Tailwind classes */
.profile-form .form-field {
    margin-bottom: 1.5rem !important;
}

.profile-form .form-input {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    background-color: white !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
}

.profile-form .form-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 14px !important;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #1f2937;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 2px solid #000;
    color: #000;
    background-color: transparent;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondary:hover {
    background-color: #000;
    color: white;
}

.btn-outline {
    padding: 0.75rem 1.5rem;
    border: 1px solid #d1d5db;
    color: #374151;
    background-color: transparent;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
.btn-outline:hover {
    background-color: #f9fafb;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
}

.card-hover {
    transition: all 0.3s;
}
.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

/* Dashboard Layout */
.dashboard-sidebar {
    width: 16rem; /* w-64 */
    background-color: white;
    border-right: 1px solid #e5e7eb; /* border-gray-200 */
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    overflow-y: auto;
}

.dashboard-content {
    margin-left: 16rem; /* ml-64 */
    min-height: 100vh;
    background-color: #f9fafb; /* bg-gray-50 */
}

.dashboard-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
    padding: 1rem 1.5rem; /* px-6 py-4 */
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #374151;
    transition: background-color 0.15s;
    text-decoration: none;
}
.nav-link:hover {
    background-color: #f3f4f6;
}

.nav-link.active {
    background-color: #000;
    color: white;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Tool Card Styles */
.tool-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
    cursor: pointer;
}
.tool-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 3rem;
    height: 3rem;
    background-color: #000;
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}
.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

/* Pro Badge */
.pro-badge {
    font-size: 0.75rem;
    background-color: #000;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Status Indicators */
.status-guest {
    color: #ea580c;
    background-color: #fed7aa;
}

.status-basic {
    color: #2563eb;
    background-color: #dbeafe;
}

.status-pro {
    color: #9333ea;
    background-color: #f3e8ff;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

.border-dashed-animated {
    border: 2px dashed #ccc;
    background-image: 
        linear-gradient(45deg, transparent 33.333%, currentColor 33.333%, currentColor 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, currentColor 33.333%, currentColor 66.667%, transparent 66.667%);
    background-size: 20px 40px;
    animation: border-dance 2s linear infinite;
}

@keyframes border-dance {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 40px 40px, -40px 40px; }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Will be implemented later if needed */
}