/* Base styles for Discourse Parser */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.navbar-brand {
    font-weight: 600;
    color: #007bff !important;
}

/* Cards and panels */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Tables */
.table {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #cce7ff;
    color: #004085;
}

/* Login form specific styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-card {
    padding: 40px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 30px;
    color: #333;
    font-weight: 300;
}

/* Dashboard styles */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.stat-card p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Parser test page */
.parser-test {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.url-input {
    min-height: 120px;
    font-family: monospace;
}

.result-card {
    margin-top: 20px;
    border-left: 4px solid #007bff;
}

.error-card {
    border-left: 4px solid #dc3545;
}

.success-card {
    border-left: 4px solid #198754;
}

.platform-badge {
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Loading animations */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    color: #007bff;
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .container {
        padding: 10px;
    }
    
    .parser-test {
        margin: 20px auto;
        padding: 15px;
    }
}

/* Status indicators */
.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.status-pending {
    color: #ffc107;
}

/* Media gallery */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.media-item img {
    width: 100%;
    height: auto;
    display: block;
}
