/* Scout Connect Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
    --sc-primary: #2563eb;
    --sc-primary-light: #3b82f6;
    --sc-secondary: #10b981;
    --sc-accent: #f59e0b;
    --sc-purple: #7413dc;
    --sc-surface: #ffffff;
    --sc-background: #f8fafc;
    --sc-border: #e5e7eb;
    --sc-text-primary: #111827;
    --sc-text-secondary: #6b7280;
    --sc-text-muted: #9ca3af;
    --sc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --sc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --sc-radius: 12px;
    --sc-radius-sm: 6px;
    --sc-gradient: linear-gradient(135deg, var(--sc-primary), var(--sc-secondary));
}

/* Universal Shortcode Container */
.sc-shortcode-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Responsive Container */
.sc-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
}

/* Modern Data Table */
.sc-data-table {
    width: 100%;
    background: var(--sc-surface);
    border-radius: var(--sc-radius);
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    border: 1px solid var(--sc-border);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 1.5rem 0;
}

.sc-data-table thead {
    background: var(--sc-gradient);
    position: relative;
}

.sc-data-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.sc-data-table th {
    color: white;
    font-weight: 600;
    padding: 18px 16px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.sc-data-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.sc-data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--sc-border);
    color: var(--sc-text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.sc-data-table tbody tr {
    transition: all 0.2s ease;
}

.sc-data-table tbody tr:hover {
    background: linear-gradient(90deg, var(--sc-background), var(--sc-surface));
    transform: translateX(4px);
    box-shadow: 4px 0 8px -2px rgba(37, 99, 235, 0.1);
}

.sc-data-table tbody tr:last-child td {
    border-bottom: none;
}

.sc-data-table a {
    color: var(--sc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sc-data-table a:hover {
    color: var(--sc-primary-light);
    text-decoration: underline;
}

/* Modern Error Card */
.sc-message-card {
    padding: 2rem;
    border-radius: var(--sc-radius);
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.sc-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sc-gradient);
}

.sc-error-card {
    background: linear-gradient(135deg, #fef2f2, #ffffff);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.sc-error-card::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.sc-success-card {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.sc-success-card::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.sc-message-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.sc-message-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Section Size Display */
.sc-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sc-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--sc-shadow);
    margin: 1rem 0;
}

.sc-section-badge::before {
    content: '👥';
    font-size: 1.2em;
}

/* Equipment Management Styles */
.sc-equipment-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--sc-background);
    border-radius: var(--sc-radius);
    border: 1px solid var(--sc-border);
}

.sc-equipment-table {
    width: 100%;
    background: var(--sc-surface);
    border-radius: var(--sc-radius);
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    border: none;
    margin: 1rem 0;
}

.sc-equipment-table thead {
    background: linear-gradient(135deg, #059669, #10b981);
}

.sc-equipment-table th {
    color: white;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-equipment-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sc-border);
    color: var(--sc-text-primary);
    font-size: 14px;
}

.sc-equipment-table tbody tr {
    transition: all 0.2s ease;
}

.sc-equipment-table tbody tr:hover {
    background: linear-gradient(90deg, #f0fdf4, var(--sc-surface));
    transform: translateX(2px);
}

.sc-equipment-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modern Gantt Chart Styles (Enhanced) */
.sc-gantt-container {
    background: var(--sc-surface);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow-lg);
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid var(--sc-border);
}

.sc-gantt-header {
    background: var(--sc-gradient);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.sc-gantt-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sc-gantt-scroll-container {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

.sc-scroll-indicator {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(90deg, var(--sc-background), transparent, var(--sc-background));
    color: var(--sc-text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    border-bottom: 1px solid var(--sc-border);
}

/* Legacy Compatibility Classes */
.osm-section-size {
    font-weight: bold;
    color: var(--sc-primary);
    font-size: 1.2em;
}

.osm-quartermaster {
    margin: 20px 0;
}

.osm-qm-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--sc-border);
    margin: 10px 0;
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.osm-qm-table thead {
    background: var(--sc-gradient);
}

.osm-qm-table th {
    color: white;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border-bottom: none;
}

.osm-qm-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--sc-border);
}

.osm-qm-table tr:nth-child(even) {
    background-color: var(--sc-background);
}

.osm-qm-table tbody tr:hover {
    background: linear-gradient(90deg, #f0f9ff, var(--sc-surface));
}