/* ══════════════════════════════════════════
   ELEMENTA — ADMIN PANEL CSS
   Tema: Beyaz / Açık
══════════════════════════════════════════ */

/* ── GENEL ── */
body {
    background: #f4f6f8 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ap-wrapper {
    background: #f4f6f8;
    min-height: 100vh;
    padding: 40px 24px 80px;
}

.ap-header {
    max-width: 1100px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ap-header-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0;
}

.ap-header-title span {
    color: #c9a84c;
}

/* ── BUTONLAR ── */
.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.ap-btn-gold {
    background: #c9a84c;
    color: #ffffff;
    border-color: #c9a84c;
}
.ap-btn-gold:hover {
    background: #b8962e;
    border-color: #b8962e;
    color: #ffffff;
}

.ap-btn-outline {
    background: transparent;
    color: #be8e14;
    border-color: rgba(159, 169, 20, 0.2);
}
.ap-btn-outline:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

.ap-btn-danger {
    background: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}
.ap-btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

.ap-btn-sm {
    padding: 6px 14px;
    font-size: 0.75rem;
}

/* ── DASHBOARD KARTLARI ── */
.ap-dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.3s ease;
    height: 100%;
}

.ap-dashboard-card:hover {
    border-color: rgba(201,168,76,0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.ap-dashboard-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.ap-dashboard-title {
    color: #0d1b2a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ap-dashboard-desc {
    color: rgba(0,0,0,0.45);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.ap-dashboard-link {
    color: #c9a84c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ── TABLO KARTI ── */
.ap-table-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.ap-table {
    width: 100%;
    border-collapse: collapse;
}

.ap-table thead tr {
    background: #fafafa;
    border-bottom: 2px solid rgba(201,168,76,0.2);
}

.ap-table th {
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c9a84c;
}

.ap-table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.65);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: middle;
}

.ap-table td strong,
.ap-table td[style*="font-weight:600"] {
    color: #0d1b2a !important;
}

.ap-table tbody tr:hover {
    background: #fafafa;
}

.ap-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── BADGE ── */
.ap-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ap-badge-green  { background: rgba(46,204,113,0.12);  color: #27ae60; }
.ap-badge-gray   { background: rgba(0,0,0,0.06);        color: rgba(0,0,0,0.4); }
.ap-badge-blue   { background: rgba(52,152,219,0.12);   color: #2980b9; }
.ap-badge-gold   { background: rgba(201,168,76,0.12);   color: #b8962e; }

/* ── FORM KARTI ── */
.ap-form-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.ap-form-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ap-form-card-header {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}

.ap-form-card-header i {
    color: #c9a84c;
    font-size: 1.1rem;
}

.ap-form-card-header h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
}

.ap-form-card-body {
    padding: 28px 32px;
}

/* ── FORM ALANLARI ── */
.ap-form-group {
    margin-bottom: 22px;
}

.ap-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.45);
    margin-bottom: 8px;
}

.ap-label .req {
    color: #e74c3c;
    margin-left: 2px;
}

.ap-input,
.ap-textarea,
.ap-select {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: #0d1b2a;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
}

.ap-input:focus,
.ap-textarea:focus,
.ap-select:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: #ffffff;
}

.ap-input::placeholder,
.ap-textarea::placeholder {
    color: rgba(0,0,0,0.25);
}

.ap-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.ap-select option {
    background: #ffffff;
    color: #0d1b2a;
}

.ap-textarea {
    resize: vertical;
    min-height: 120px;
}

.ap-hint {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.35);
    margin-top: 6px;
}

.ap-field-error {
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 6px;
    display: block;
}

/* ── TOGGLE ── */
.ap-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ap-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.ap-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ap-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.ap-toggle-slider:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ap-toggle input:checked + .ap-toggle-slider {
    background: #c9a84c;
}

.ap-toggle input:checked + .ap-toggle-slider:before {
    transform: translateX(22px);
}

.ap-toggle-label {
    font-size: 0.88rem;
    color: rgba(0,0,0,0.6);
}

/* ── FORM FOOTER ── */
.ap-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-top: 1px solid rgba(0,0,0,0.07);
    background: #fafafa;
}

/* ── BOŞ DURUM ── */
.ap-empty {
    text-align: center;
    padding: 80px 40px;
    color: rgba(0,0,0,0.3);
}

.ap-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: rgba(201,168,76,0.35);
}

.ap-empty p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ── ALERT ── */
.ap-alert {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.ap-alert-success {
    background: rgba(46,204,113,0.08);
    border: 1px solid rgba(46,204,113,0.25);
    color: #27ae60;
}

.ap-alert-error {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.25);
    color: #e74c3c;
}

/* ── MOBİL ── */
@media (max-width: 768px) {
    .ap-wrapper { padding: 24px 16px 60px; }
    .ap-header-title { font-size: 1.3rem; }
    .ap-table-card { border-radius: 12px; }
    .ap-form-card-body { padding: 20px; }
    .ap-form-card-header { padding: 16px 20px; }
    .ap-form-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    .ap-form-footer .ap-btn {
        width: 100%;
        justify-content: center;
    }
    .ap-table th, .ap-table td {
        padding: 12px 14px;
    }
}