/* Basic reset and typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Authentication Gate Styles */
#login-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
}

#login-container input {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

#logout-btn {
    background-color: #dc3545;
    width: auto;
    margin-bottom: 20px;
}

#logout-btn:hover {
    background-color: #c82333;
}

.error {
    color: #d9534f;
    margin-top: 10px;
    font-size: 14px;
}

/* Blog Styles */
#blog-container {
    width: 100%;
    max-width: 1200px;
}

.csv-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 20px;
}

.csv-toolbar input[type="file"] {
    display: none;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0f766e;
    color: white;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.file-button:hover {
    background-color: #115e59;
}

.csv-status {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.csv-status.error-state {
    color: #d9534f;
}

#csv-table-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.csv-grid {
    align-items: start;
}

.csv-card {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px;
}

.csv-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #0f172a;
}

.empty-state {
    margin: 0;
    padding: 20px;
}

.csv-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.csv-table th,
.csv-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
    white-space: nowrap;
}

.csv-table th {
    position: sticky;
    top: 0;
    background: #0f172a;
    color: white;
    z-index: 1;
    white-space: nowrap;
}

.csv-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.csv-table tbody tr:hover {
    background: #ecfeff;
}

.pdf-section {
    margin-top: 24px;
}

.pdf-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #0f172a;
}

.post {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post h3 {
    margin-top: 0;
    color: #007bff;
}
