/**
 * CSS utility classes to replace inline styles
 * Create this as a new CSS file or add to existing utilities
 */
/*
/* Message styling utilities */
.error-message {
    color: var(--error);
    font-weight: bold;
    padding: 0.5rem;
    background: var(--error-background, rgba(220, 53, 69, 0.1));
    border-left: 3px solid var(--error);
    border-radius: 4px;
}

.success-message {
    color: var(--success);
    font-weight: bold;
    padding: 0.5rem;
    background: var(--success-background, rgba(40, 167, 69, 0.1));
    border-left: 3px solid var(--success);
    border-radius: 4px;
}

.warning-message {
    color: var(--warning);
    font-weight: bold;
    padding: 0.5rem;
    background: var(--warning-background, rgba(255, 193, 7, 0.1));
    border-left: 3px solid var(--warning);
    border-radius: 4px;
}

.info-message {
    color: var(--info);
    font-weight: bold;
    padding: 0.5rem;
    background: var(--info-background, rgba(23, 162, 184, 0.1));
    border-left: 3px solid var(--info);
    border-radius: 4px;
}

/* Security warning specific styles */
.security-warning {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
}

.warning-icon {
    font-size: 3rem;
    color: var(--warning);
    text-align: center;
    margin-bottom: 1rem;
}

.code-display {
    background: var(--background-secondary);
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-mono, 'Courier New', monospace);
    word-break: break-all;
    margin: 1rem 0;
    border: 1px solid var(--border);
}

/* Form utilities */
.form-group {
    margin-bottom: 1rem;
}

.form-group.required label::after {
    content: " *";
    color: var(--error);
}

/* Required field indicator */
.required {
    color: var(--error);
    font-weight: bold;
}

.field-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Layout utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Accessibility utilities */
.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;
}

.focus-visible:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ====================================
   FOOTER UTILITIES
   ==================================== */

/* Duplicate sr-only definition removed - keeping the one below */

/* Focus Management */
.focus-visible:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Language Selector Utilities - moved to language-selector.css */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    
    .social-link,
    .footer-nav-link,
    .theme-toggle {
    }
    
    .social-link:hover {
    }
}

/* Theme utilities */
.theme-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.theme-text {
    font-size: 0.875rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer section spacing utilities */
.footer-section {
    margin-bottom: var(--space-4);
}

.footer-section:last-child {
    margin-bottom: 0;
}

/* Accessibility utilities specific to footer */
.footer-section h3:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* Footer link focus management */
.footer-nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Responsive text utilities for footer */
@media (max-width: 768px) {
    .footer-section-title {
        font-size: 0.9rem;
    }
    
    .footer-nav-link {
        font-size: 0.85rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* ===== LINK ICONS ===== */
.link-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: inherit;
    font-size: 1.125rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* .link-item .link-icon {
    margin-right: 0.75rem;
    color: var(--primary-color, var(--primary-text));
}

.dashboard-section .link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
} */

.dashboard-section .link-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

/* Profile page link icons */
.profile-link .link-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

[data-theme="dark"] .badge,
[data-theme="system"].system-dark .badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.active {
    background: var(--success);
    color: white;
}

.status-badge.inactive {
    background: var(--warning);
    color: white;
}

.status-badge.regular {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-badge.admin-role-admin {
    background: #8b5cf6;
    color: white;
}

[data-theme="dark"] .status-badge.regular,
[data-theme="system"].system-dark .status-badge.regular {
    background: rgba(51, 65, 85, 0.8);
    color: var(--text-muted);
}

.link-count {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.click-count {
    display: inline-block;
    background: var(--success);
    color: var(--contrast);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: var(--space-2);
}

/* ===== FOOTER-SPECIFIC THEME TOGGLE OVERRIDES ===== */

/* Language selector styles moved to language-selector.css */