/* ============================================================
   VALOREM Gayrimenkul - Admin & Danışman Paneli CSS
   ============================================================ */

:root {
    --admin-bg: #F1F5F9;
    --admin-sidebar-bg: #0F172A;
    --admin-sidebar-text: #94A3B8;
    --admin-card-bg: #FFFFFF;
}

body.admin-body {
    background-color: var(--admin-bg);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar-bg);
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.sidebar-user {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--admin-sidebar-text);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--accent);
    color: #ffffff;
}

/* Main Content Area */
.admin-main {
    margin-left: 260px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 30px;
    flex-grow: 1;
}

/* UI Alert / Warning Banner for KVKK Privacy */
.privacy-alert {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-left: 5px solid #EF4444;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: #991B1B;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.privacy-alert i {
    font-size: 1.4rem;
}

.owner-masked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.owner-unmasked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #D1FAE5;
    color: #065F46;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Multi-Step Wizard Styling */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px; left: 0; right: 0;
    height: 3px;
    background: var(--border);
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 10px;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 8px auto;
    transition: var(--transition);
}

.wizard-step.active .step-number {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.wizard-step.completed .step-number {
    background: var(--emerald);
    color: #ffffff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wizard-step.active .step-label {
    color: var(--accent);
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background: var(--bg-surface);
    padding: 14px 18px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.92rem;
}

.table tr:hover td {
    background: #F8FAFC;
}

/* Card Box */
.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* Forms in Admin */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
