/* Base styles */
:root {
    /* Namespaced variables to prevent conflicts */
    --global-primary-color: #E3175E;
    --global-primary-hover: #B01340;
    --global-text-color: #333;
    --global-bg-color: #fff;
    --global-border-color: #e5e7eb;
    --global-hover-bg-color: #f3f4f6;
}

/* Typography - Use class-based approach instead of global body styles */
.global-typography {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--global-text-color);
    line-height: 1.5;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--global-bg-color);
    border-bottom: 1px solid var(--global-border-color);
    z-index: 50;
}

/* Navigation */
.nav-link {
    color: var(--global-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--global-primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--global-primary-hover);
}

.btn-secondary {
    border: 1px solid var(--global-primary-color);
    color: var(--global-primary-color);
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: var(--global-primary-color);
    color: white;
}

/* Forms */
.input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--global-border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--global-primary-color);
    box-shadow: 0 0 0 2px rgba(227, 23, 94, 0.1);
}

/* Cards */
.card {
    background: var(--global-bg-color);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--global-bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: opacity 0.3s ease;
}

.notification.success {
    border-left: 4px solid #10B981;
}

.notification.error {
    border-left: 4px solid #EF4444;
}

.notification.info {
    border-left: 4px solid #E3175E;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(1rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* Utilities */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --global-text-color: #e5e7eb;
        --global-bg-color: #1f2937;
        --global-border-color: #374151;
        --global-hover-bg-color: #374151;
    }
    
    .card {
        background: #111827;
    }
    
    .notification {
        background: #111827;
    }
}

/* Login Button Contrast Fix */
a[href="/login"].inline-flex {
    background-color: #E3175E !important; /* Original magenta */
    color: #ffffff !important;
    font-weight: bold !important;
}

a[href="/login"].inline-flex:hover {
    background-color: #F3175C !important; /* Lighter magenta on hover */
}

/* Fix pink elements contrast */
.bg-\[\#E3175E\] {
    background-color: #E3175E !important; /* Original magenta */
}

.hover\:bg-\[\#E3175E\]:hover {
    background-color: #F3175C !important; /* Lighter magenta on hover */
}

.text-\[\#E3175E\] {
    color: #E3175E !important; /* Original magenta for text */
}

.border-\[\#E3175E\] {
    border-color: #E3175E !important; /* Original magenta for borders */
}

/* Fix Agent of Agents card icon border */
.aos-icon {
    border-color: #E3175E !important; /* Original magenta */
} 
