/* Creators Panel Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.creators-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.creators-header h1 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.creators-header nav {
    display: flex;
    gap: 20px;
}

.creators-header nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.creators-header nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

.creators-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tables */
table {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-collapse: collapse;
}

th {
    background-color: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Headings */
h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Forms */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Utility classes */
.nav-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
}

.nav-back:hover {
    text-decoration: underline;
}

/* Stat cards */
.stat-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 160px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Card component */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Section boxes */
.section-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.section-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Navigation links */
.nav-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #0066cc;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-separator {
    display: inline-block;
    margin: 0 5px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    background-color: transparent;
    color: inherit;
}

.data-table td {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.data-table.full-table {
    background: white;
}

.data-table.full-table thead tr {
    background: #f0f0f0;
}

.data-table.full-table th,
.data-table.full-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* Section headers with actions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h3 {
    margin: 0;
}

.section-action {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
}

.section-action:hover {
    text-decoration: underline;
}

/* Text utilities */
.text-muted {
    color: #666;
    font-style: italic;
}

.text-center {
    text-align: center;
}

.text-small {
    font-size: 0.9em;
    color: #666;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: #d32f2f;
}

/* Spacing utilities */
.mb-10 {
    margin-bottom: 10px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}

.mr-10 {
    margin-right: 10px;
}

/* Review item */
.review-item {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.review-item.hidden-review {
    background: #ffebee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-text {
    margin: 10px 0;
}

.review-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* Contributor bio */
.contributor-bio {
    margin: 5px 0 0 20px;
    font-size: 0.9em;
    color: #666;
}

/* Rating bar */
.rating-row {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.rating-label {
    width: 60px;
    text-align: right;
    margin-right: 10px;
}

.rating-bar-container {
    flex: 1;
    background: #e0e0e0;
    height: 20px;
    border-radius: 3px;
    position: relative;
}

.rating-bar {
    background: #4CAF50;
    height: 100%;
    border-radius: 3px;
}

.rating-count {
    width: 80px;
    text-align: right;
    margin-left: 10px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination-button {
    padding: 8px 12px;
    margin: 0 5px;
    background: #f0f0f0;
    text-decoration: none;
    border-radius: 3px;
    color: inherit;
}

.pagination-button:hover {
    background: #e0e0e0;
}

.pagination-info {
    padding: 8px 12px;
    margin: 0 5px;
}

/* Grid layout */
.detail-grid {
    display: grid;
    gap: 20px;
}

/* Link styling */
.link-primary {
    color: #0066cc;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Status indicators */
.status-bold {
    font-weight: bold;
}

/* Edit buttons */
.edit-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
    transition: background-color 0.2s;
}

.edit-btn:hover {
    background-color: #138496;
}

.edit-btn-small {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background-color 0.2s;
}

.edit-btn-small:hover {
    background-color: #138496;
}

.save-btn, .save-btn-small {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
    margin-right: 5px;
    transition: background-color 0.2s;
}

.save-btn:hover, .save-btn-small:hover {
    background-color: #218838;
}

.cancel-btn, .cancel-btn-small {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
    transition: background-color 0.2s;
}

.cancel-btn:hover, .cancel-btn-small:hover {
    background-color: #5a6268;
}

/* Title container */
#title-container {
    position: relative;
    margin-bottom: 20px;
}

#title-input {
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
}

#title-input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#description-input {
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
}

#description-input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Button variants */
.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    display: inline-block;
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    display: inline-block;
    padding: 8px 16px;
    background: #ffc107;
    color: #212529;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-small {
    padding: 4px 12px;
    font-size: 0.85em;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* Post/Content layouts */
.post-header {
    margin-bottom: 15px;
}

.post-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.post-author a {
    color: #0066cc;
    text-decoration: none;
}

.post-author a:hover {
    text-decoration: underline;
}

.post-deleted {
    color: #dc3545;
    font-weight: bold;
}

.post-edited {
    font-style: italic;
}

.post-body {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0066cc;
}

.post-body-empty {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #ccc;
}

.post-body-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #0066cc;
    margin: 15px 0;
}

.post-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Comment layouts */
.comment-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.nested-comment {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.comment-header {
    margin-bottom: 10px;
}

.comment-header a {
    color: #0066cc;
    text-decoration: none;
}

.comment-header a:hover {
    text-decoration: underline;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
}

.comment-edited {
    font-style: italic;
}

.comment-deleted {
    color: #dc3545;
    font-weight: bold;
}

.comment-content {
    margin: 10px 0;
}

.comment-content p {
    margin: 0;
}

.deleted-content {
    opacity: 0.6;
    text-decoration: line-through;
}

.comment-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Navigation breadcrumb */
.nav-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.nav-separator {
    margin: 0 8px;
    color: #999;
}

/* Page header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0 0 10px 0;
    color: #333;
}
