/*
 * Mülk Takibi x TSKB Gayrimenkul Değerleme
 * Premium Design System
 */

:root {
    /* Primary Colors */
    --primary: #11b682;
    --primary-dark: #0e9a6d;
    --primary-light: #e8f8f3;
    --primary-gradient: linear-gradient(135deg, #11b682 0%, #0e9a6d 100%);

    /* Secondary Colors */
    --secondary: #2c3e50;
    --secondary-light: #34495e;

    /* Accent (TSKB Red - subtle) */
    --accent-red: #c62828;
    --accent-red-light: #fdeaea;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 4px 14px rgba(17, 182, 130, 0.25);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ==================
   BASE STYLES
   ================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==================
   TYPOGRAPHY
   ================== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-muted {
    color: var(--gray-600) !important;
}

.fw-semibold {
    font-weight: 600;
}

/* ==================
   BUTTONS
   ================== */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 182, 130, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-secondary {
    background: var(--gray-200);
    border: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ==================
   CARDS
   ================== */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card-body {
    padding: 1.5rem;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Selectable Card */
.card-selectable {
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card-selectable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.card-selectable:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-selectable.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-primary);
}

.card-selectable.selected .card-icon {
    background: var(--primary);
    color: var(--white);
}

.card-selectable>* {
    position: relative;
    z-index: 1;
}

/* Card Icon */
.card-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.card-icon-lg {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
}

/* ==================
   HERO SECTION
   ================== */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: var(--primary-gradient);
    opacity: 0.05;
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Partnership Visual */
.partnership-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.partner-logo {
    width: 200px;
    height: 100px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-connector {
    font-size: 2rem;
    color: var(--primary);
}

/* ==================
   PROCESS STEPS
   ================== */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-primary);
    position: relative;
}

.process-step-number i {
    font-size: 1.5rem;
}

.process-step-title {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.process-step-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ==================
   WIZARD / STEPPER
   ================== */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wizard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.wizard-subtitle {
    color: var(--gray-600);
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 0;
}

.wizard-step-indicator {
    display: flex;
    align-items: center;
}

.wizard-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border: 3px solid transparent;
}

.wizard-step-circle.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.wizard-step-circle.completed {
    background: var(--primary);
    color: var(--white);
}

.wizard-step-circle.completed::after {
    content: '✓';
    font-size: 1.2rem;
}

.wizard-step-line {
    width: 80px;
    height: 3px;
    background: var(--gray-200);
    transition: background var(--transition-base);
}

.wizard-step-line.completed {
    background: var(--primary);
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* ==================
   FORM STYLES
   ================== */
.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(17, 182, 130, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(17, 182, 130, 0.2);
}

/* ==================
   SUMMARY CARD
   ================== */
.summary-card {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--gray-600);
    font-weight: 500;
}

.summary-value {
    color: var(--secondary);
    font-weight: 600;
}

/* ==================
   SUCCESS STATE
   ================== */
.success-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.success-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==================
   ADMIN PANEL
   ================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--white);
    color: var(--secondary);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.admin-sidebar-brand span {
    color: var(--primary);
}

.admin-nav {
    padding: 1rem 0;
}

.admin-nav-item {
    display: block;
    padding: 12px 24px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.admin-nav-item i {
    margin-right: 12px;
    width: 20px;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-50);
}

.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.admin-content {
    padding: 2rem;
}

/* Admin Table */
.admin-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.admin-table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-filter-select {
    padding: 8px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    min-width: 150px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.badge-submitted {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-reviewed {
    background: #fff8e1;
    color: #f57f17;
}

.badge-approved {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-rejected {
    background: var(--accent-red-light);
    color: var(--accent-red);
}

/* Admin Detail */
.admin-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.admin-detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
}

.admin-detail-body {
    padding: 1.5rem;
}

.admin-action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-approve {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.btn-reject {
    background: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.btn-pdf {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pdf:hover {
    background: var(--gray-200);
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .wizard-step-line {
        width: 40px;
    }

    .wizard-step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .form-section {
        padding: 1.25rem;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .wizard-actions .btn {
        width: 100%;
    }
}

/* ==================
   UTILITIES
   ================== */
.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}