/* Admin Özel Stiller (Ortak stiller style.css'den alınır) */

.center-box {
    max-width: 400px;
    margin: 10vh auto;
    padding: 3rem;
}

.center-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.admin-container {
    padding: 2rem;
}

.admin-main {
    display: flex;
    gap: 1.5rem;
    height: calc(100vh - 150px);
    margin-top: 1.5rem;
}

.admin-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
}

.admin-sidebar h3 {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.admin-editor {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Form Elemanları */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
}

/* Butonlar */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.editor-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Mesajlar */
.error-msg {
    color: #fca5a5;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.success-msg {
    color: #6ee7b7;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.admin-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.admin-post-item:hover {
    background: rgba(255,255,255,0.05);
}

.admin-post-item.active {
    background: rgba(88, 166, 255, 0.15);
    border-left: 3px solid var(--accent);
}

/* Quill Editor Overrides */
.ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px 8px 0 0;
}
.ql-container.ql-snow {
    border: 1px solid var(--glass-border) !important;
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 1rem;
}
.ql-editor {
    color: var(--text-primary);
    min-height: 350px;
}
.ql-snow .ql-stroke {
    stroke: var(--text-secondary) !important;
}
.ql-snow .ql-fill {
    fill: var(--text-secondary) !important;
}
.ql-snow .ql-picker {
    color: var(--text-secondary) !important;
}
