/* Custom styles */
.card {
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #D0D3D4;
    border-radius: 8px;
}

.card-title {
    color: #1D252D;
    font-weight: 600;
}

/* Refined EventMobi color utilities - Orange used sparingly for primary actions only */
.text-eventmobi-primary { color: #EE7700; }
.text-eventmobi-secondary { color: #5B6770; }
.text-eventmobi-accent { color: #FF9E1B; }
.text-eventmobi-success { color: #01996A; }
.text-eventmobi-info { color: #276092; }
.text-eventmobi-warning { color: #FF5C39; }

/* Calmer section headers and text */
.text-section-header { color: #4A5568; }
.text-muted-subtle { color: #718096; }
.text-title { color: #2D3748; font-weight: 600; }
.text-subtitle { color: #4A5568; font-weight: 500; }
.text-description { color: #718096; font-weight: 400; }

.bg-eventmobi-primary { background-color: #EE7700; }
.bg-eventmobi-secondary { background-color: #5B6770; }
.bg-eventmobi-accent { background-color: #FF9E1B; }
.bg-eventmobi-success { background-color: #01996A; }
.bg-eventmobi-info { background-color: #276092; }
.bg-eventmobi-warning { background-color: #FF5C39; }

/* Calmer section backgrounds */
.bg-section-header { background-color: #F7FAFC; }
.bg-section-subtle { background-color: #EDF2F7; }

/* Placeholder chips for template variables */
.placeholder-chip {
    display: inline-block;
    background: linear-gradient(135deg, #EE7700, #FF9E1B);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.125rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.placeholder-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

/* Time formatting utilities */
.time-ago {
    color: #7C878E;
    font-size: 0.875rem;
    font-style: italic;
}

.time-ago.recent {
    color: #01996A;
}

.time-ago.old {
    color: #FF5C39;
}

/* Refined typography hierarchy */
.h1-title { font-size: 2.25rem; font-weight: 700; color: #2D3748; line-height: 1.2; }
.h2-title { font-size: 1.875rem; font-weight: 600; color: #2D3748; line-height: 1.3; }
.h3-title { font-size: 1.5rem; font-weight: 600; color: #2D3748; line-height: 1.4; }
.h4-title { font-size: 1.25rem; font-weight: 600; color: #2D3748; line-height: 1.4; }
.h5-title { font-size: 1.125rem; font-weight: 600; color: #2D3748; line-height: 1.4; }
.h6-title { font-size: 1rem; font-weight: 600; color: #2D3748; line-height: 1.4; }

.subtitle { font-size: 1rem; font-weight: 500; color: #4A5568; line-height: 1.5; }
.description { font-size: 0.875rem; font-weight: 400; color: #718096; line-height: 1.5; }

/* Improved spacing system */
.spacing-section { margin-bottom: 3rem; }
.spacing-card { margin-bottom: 2rem; }
.spacing-element { margin-bottom: 1.5rem; }
.spacing-small { margin-bottom: 1rem; }

/* Modern card enhancements with consistent spacing */
.card-modern {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-modern .card-body {
    padding: 2rem;
}

.card-modern .card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E2E8F0;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure round icons stay round - force circular shape */
.rounded-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Tailwind accordion styles */
.accordion-tailwind {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-item-tailwind {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-item-tailwind:last-child {
    border-bottom: none;
}

.accordion-header-tailwind {
    margin: 0;
}

.accordion-button-tailwind {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.accordion-button-tailwind:hover {
    background: #f3f4f6;
}

.accordion-button-tailwind.active {
    background: #e5e7eb;
}

.accordion-content-tailwind {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion-content-tailwind.open {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
}

.accordion-body-tailwind {
    padding: 1.5rem;
}

.accordion-icon {
    transition: transform 0.2s ease;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

.status-badge.success {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.error {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-badge.info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* Card actions with dropdown */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-actions-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-actions-dropdown {
    position: relative;
}

.card-actions-dropdown .dropdown-toggle {
    background: none;
    border: 1px solid #E2E8F0;
    color: #718096;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.card-actions-dropdown .dropdown-toggle:hover {
    background-color: #F7FAFC;
    border-color: #CBD5E0;
    color: #4A5568;
}

.card-actions-dropdown .dropdown-menu {
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    min-width: 160px;
}

.card-actions-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4A5568;
    transition: all 0.2s ease;
}

.card-actions-dropdown .dropdown-item:hover {
    background-color: #F7FAFC;
    color: #2D3748;
}

.card-actions-dropdown .dropdown-item.danger {
    color: #E53E3E;
}

.card-actions-dropdown .dropdown-item.danger:hover {
    background-color: #FED7D7;
    color: #C53030;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.table th {
    font-weight: 600;
    color: #495057;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* EventMobi brand colors */
.btn-primary {
    background-color: #EE7700;
    border-color: #EE7700;
    color: white;
}

.btn-primary:hover {
    background-color: #FF9E1B;
    border-color: #FF9E1B;
    color: white;
}

.btn-secondary {
    background-color: #5B6770;
    border-color: #5B6770;
    color: white;
}

.btn-secondary:hover {
    background-color: #7C878E;
    border-color: #7C878E;
    color: white;
}

/* Navbar customization */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: 600;
}

/* Ensure navbar links are visible on dark navbar */
.navbar.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85) !important;
}

.navbar.navbar-dark .nav-link:hover,
.navbar.navbar-dark .nav-link:focus {
    color: #ffffff !important;
}

/* Override any Tailwind conflicts with Bootstrap navbar */
.navbar-collapse {
    display: flex !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
}

.navbar-nav .nav-item {
    display: list-item !important;
}

.navbar-nav .nav-link {
    display: block !important;
    padding: 0.5rem 1rem !important;
}

/* Debug Info styles */
.debug-info {
    font-size: 0.9rem;
    opacity: 0.95;
}

.debug-info span {
    white-space: nowrap;
}

.debug-info i {
    margin-right: 0.25rem;
}

.debug-info .bi-check-circle {
    color: #22c55e;
}

.debug-info .bi-x-circle {
    color: #ef4444;
}

.debug-info .bi-clock {
    color: #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .debug-info {
        display: none;
    }
}

/* Basic styles */
body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #1D252D;
}

/* Ensure navbar starts at top */
nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove underlines from navigation links */
nav a {
    text-decoration: none !important;
}

nav a:hover {
    text-decoration: none !important;
}

/* Remove any default spacing */
html, body {
    margin: 0;
    padding: 0;
}

.preview-content {
    white-space: pre-wrap;
}

/* Message history table */
.table th {
    white-space: nowrap;
}

/* Progress bar */
.progress {
    height: 1.5rem;
}

/* Template preview */
.template-preview {
    max-height: 300px;
    overflow-y: auto;
}

/* Test mode output */
#testModeOutput {
    font-family: monospace;
    white-space: pre-wrap;
}

/* Profile card modal styling */
.profile-card-header {
    background: linear-gradient(135deg, #EE7700, #FF9E1B);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem 0.75rem 0 0;
    position: relative;
    overflow: hidden;
}

.profile-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-info {
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-title {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Interactive chart controls */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #F7FAFC;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
}

.chart-toggle {
    display: flex;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.chart-toggle button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #718096;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chart-toggle button.active {
    background: #EE7700;
    color: white;
}

.chart-toggle button:not(.active):hover {
    background: #F7FAFC;
    color: #4A5568;
}

.chart-container {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
    padding: 1rem;
}

.chart-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
}

/* Friendlier language styling */
.status-friendly {
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.status-friendly.running {
    background: #D1FAE5;
    color: #065F46;
}

.status-friendly.paused {
    background: #FEF3C7;
    color: #92400E;
}

.status-friendly.ready {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-friendly.error {
    background: #FEE2E2;
    color: #991B1B;
} 