* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.card-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.query-info {
    background: #1f2937;
    color: #10b981;
    padding: 12px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.data-content {
    font-size: 14px;
    color: #333;
}

.big-number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background: #f3f4f6;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover {
    background: #f9fafb;
}

.loading {
    text-align: center;
    color: #999;
    padding: 20px;
}

.error {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #c00;
}

.timestamp {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}
/* Button styling */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* Card spacing */
.card {
    margin-bottom: 40px;
}

/* Dashboard sections spacing */
.dashboard {
    margin-bottom: 40px;
}
.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
    color: white;
}

/* Demo Instructions Card */
.demo-card {
    background: white;
    text-align: center;
}

.demo-card h2 {
    margin-bottom: 20px;
}

.instructions-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.instructions-content ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.instructions-content li {
    margin-bottom: 12px;
    color: #333;
}

.instructions-content strong {
    color: #333;
    font-weight: 600;
}

.credentials {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 5px;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.credentials div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credentials code {
    background: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #d9534f;
    border: 1px solid #ddd;
}