/* ============================================================
   MODELS AJANS — Custom Admin Panel CSS
   admin-panel/admin.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #1a1a1a;
    --bg4: #222222;
    --border: rgba(255, 255, 255, 0.07);
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.12);
    --gold-border: rgba(212, 175, 55, 0.3);
    --rose: #ff6b9d;
    --green: #4caf87;
    --red: #e05c5c;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dim: #555555;
    --font: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 157, 0.03) 0%, transparent 50%),
        var(--bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo h1 {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 3px;
}

.login-logo h1 span {
    color: var(--gold);
}

.login-logo p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
}

.login-form-group {
    margin-bottom: 18px;
}

.login-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.login-form-group input:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.login-error {
    background: rgba(224, 92, 92, 0.1);
    border: 1px solid rgba(224, 92, 92, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #ff8a8a;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 13px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.login-btn:hover {
    background: #e8c84a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.apanel-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo h2 {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 2px;
}

.sidebar-logo h2 span {
    color: var(--gold);
}

.sidebar-logo small {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-section-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 12px 24px 6px;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    border-radius: 0;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.sidebar-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.sidebar-link.active {
    color: var(--gold);
    background: var(--gold-dim);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 12.5px;
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    padding: 6px 0;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.logout-btn:hover {
    color: var(--red);
    text-decoration: none;
}

/* ---- Main content ---- */
.apanel-main {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    min-height: 100vh;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--gold);
    font-size: 20px;
}

.page-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon.rose {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    color: var(--rose);
}

.stat-icon.green {
    background: rgba(76, 175, 135, 0.1);
    border-color: rgba(76, 175, 135, 0.3);
    color: var(--green);
}

.stat-icon.red {
    background: rgba(224, 92, 92, 0.1);
    border-color: rgba(224, 92, 92, 0.3);
    color: var(--red);
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ============================================================
   APPLICATION CARDS (Başvurular)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.app-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.app-card-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    background: var(--bg3);
    display: block;
}

.app-card-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 36px;
}

.app-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.app-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.app-card-meta i {
    color: var(--gold);
    font-size: 11px;
}

.app-card-actions {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-card-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-lg {
    padding: 11px 24px;
    font-size: 13px;
}

.btn-gold {
    background: var(--gold);
    color: #000;
}

.btn-gold:hover {
    background: #e8c84a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-green {
    background: var(--green);
    color: #000;
}

.btn-green:hover {
    background: #5dc89a;
    transform: translateY(-1px);
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: #f07070;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--gold-border);
    color: var(--gold);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(224, 92, 92, 0.4);
    color: var(--red);
}

.btn-danger-outline:hover {
    background: rgba(224, 92, 92, 0.1);
    border-color: var(--red);
}

/* ============================================================
   MODEL LIST (Modeller sayfası — listeli)
   ============================================================ */
.model-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-list-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.model-list-item:hover {
    border-color: var(--gold-border);
}

.model-list-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--gold-border);
    flex-shrink: 0;
    background: var(--bg3);
}

.model-list-photo-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg3);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 18px;
    flex-shrink: 0;
}

.model-list-info {
    flex: 1;
    min-width: 0;
}

.model-list-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-list-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 3px;
}

.model-list-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.model-list-meta i {
    color: var(--gold);
    font-size: 10px;
}

.model-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Toggle switch */
.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.toggle-label {
    white-space: nowrap;
}

.toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    display: none;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg4);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-dim);
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle input:checked+.toggle-slider {
    background: rgba(76, 175, 135, 0.2);
    border-color: var(--green);
}

.toggle input:checked+.toggle-slider::after {
    background: var(--green);
    left: 20px;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 32px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    flex-wrap: wrap;
}

.detail-profile-img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    border: 2px solid var(--gold-border);
    flex-shrink: 0;
}

.detail-profile-placeholder {
    width: 160px;
    height: 200px;
    background: var(--bg3);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.detail-header-info {
    flex: 1;
}

.detail-name {
    font-family: var(--font-display);
    font-size: 26px;
    margin-bottom: 8px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-gold {
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold);
}

.badge-green {
    background: rgba(76, 175, 135, 0.12);
    border: 1px solid rgba(76, 175, 135, 0.3);
    color: var(--green);
}

.badge-red {
    background: rgba(224, 92, 92, 0.12);
    border: 1px solid rgba(224, 92, 92, 0.3);
    color: var(--red);
}

.badge-rose {
    background: rgba(255, 107, 157, 0.12);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: var(--rose);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Info grid */
.info-section {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.info-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-item-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-item-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Gallery */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.media-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: block;
    transition: var(--transition);
}

.media-thumb:hover {
    border-color: var(--gold-border);
    transform: scale(1.02);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ============================================================
   FILTER / TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 7px 18px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--gold);
    color: #000;
    font-weight: 700;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
}

/* ============================================================
   ALERTS & FLASH
   ============================================================ */
.flash {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.flash-success {
    background: rgba(76, 175, 135, 0.1);
    border: 1px solid rgba(76, 175, 135, 0.3);
    color: var(--green);
}

.flash-error {
    background: rgba(224, 92, 92, 0.1);
    border: 1px solid rgba(224, 92, 92, 0.3);
    color: var(--red);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-box {
    position: relative;
    width: 240px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 13px;
}

.search-box input {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 12px 8px 34px;
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--gold-border);
}

.search-box input::placeholder {
    color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE (basic)
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .apanel-main {
        margin-left: 0;
        padding: 16px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-profile-img,
    .detail-profile-placeholder {
        width: 120px;
        height: 150px;
    }
}