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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

body.dark-theme {
    background: #0d1117;
    color: #c9d1d9;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #30363d;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    color: #c9d1d9;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    background: #21262d;
    color: #c9d1d9;
    transition: all 0.2s;
}

.btn:hover {
    background: #30363d;
    border-color: #8b949e;
}

.btn-primary {
    background: #238636;
    border-color: #238636;
    color: white;
}

.btn-primary:hover {
    background: #2ea043;
    border-color: #2ea043;
}

.btn-success {
    background: #238636;
    border-color: #238636;
    color: white;
}

.btn-success:hover {
    background: #2ea043;
    border-color: #2ea043;
}

.btn-warning {
    background: #f0883e;
    border-color: #f0883e;
    color: white;
}

.btn-warning:hover {
    background: #e8742e;
    border-color: #e8742e;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn.active {
    background: #1f6feb;
    border-color: #1f6feb;
    color: white;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    padding: 10px 0 10px 12px;
    margin-left: 5px;
    border-bottom: 1px solid #21262d;
    border-left: 4px solid #30363d;
    transition: all 0.2s;
}

.article-item {
    border-left-color: #f538a0; /* Pink by default */
}

.article-item.published-past {
    border-left-color: #3fb950; /* Green for published past/current */
}

.article-item.scheduled {
    border-left-color: #f0883e; /* Orange for scheduled future */
}

.article-item:hover {
    background: #161b22;
    padding-left: 16px;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 15px;
}

.article-title {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
}

.article-title:hover {
    text-decoration: underline;
}

.article-date {
    color: #8b949e;
    font-size: 0.8rem;
    white-space: nowrap;
}

.article-date .scheduled {
    color: #d29922;
}

.article-description {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.article-tags {
    color: #58a6ff;
    font-size: 0.8rem;
    font-style: italic;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
}

.status-draft {
    background: #9e6a03;
    color: #f0e68c;
}

.status-published {
    background: #1a4e2c;
    color: #3fb950;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-title {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.article-title:hover {
    text-decoration: underline;
}

.article-description {
    color: #8b949e;
    font-size: 0.9rem;
}

.article-meta {
    display: flex;
    gap: 15px;
    color: #8b949e;
    font-size: 0.85rem;
}

.tags {
    color: #58a6ff;
}

/* Editor styles */
.editor-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.editor-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0d1117;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.editor-header h1 {
    font-size: 1.5rem;
}

.editor-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-left-pane {
    width: 50%;
    display: flex;
    border-right: 1px solid #30363d;
}

.content-editor {
    width: 100%;
    height: 100%;
    padding: 20px;
    background: #0d1117;
    color: #c9d1d9;
    border: none;
    resize: none;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 14px;
    line-height: 1.8;
    outline: none;
}

.content-editor::placeholder {
    color: #484f58;
}

.editor-right-pane {
    width: 50%;
    padding: 20px;
    overflow-y: auto;
    background: #0d1117;
}

.metadata-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

.publish-status-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #161b22;
}

.publish-status-section h4 {
    margin-bottom: 12px;
    color: #c9d1d9;
    font-size: 1rem;
}

.current-status {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #0d1117;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #8b949e;
}

.current-status span:last-child {
    color: #58a6ff;
    font-weight: 500;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.radio-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.publish-at-controls {
    margin-left: 24px;
    margin-top: 5px;
}

.publish-at-controls input[type="datetime-local"] {
    width: 100%;
}

.publish-at-controls input[type="datetime-local"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar styles for dark theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #161b22;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}