:root {
    --biv-blue: #2B5F8F;
    --biv-blue-light: #4A7BA7;
    --biv-blue-dark: #1E4466;
    --biv-accent: #5B9BD5;
    --biv-text: #1A1A1A;
    --biv-gray: #F5F7FA;
    --biv-border: #E1E8ED;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--biv-gray);
    color: var(--biv-text);
    line-height: 1.6;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--biv-blue) 0%, var(--biv-blue-dark) 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 440px;
    padding: 48px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--biv-blue);
    border-radius: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--biv-text);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--biv-text);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--biv-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--biv-blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 143, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
}

.btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: var(--biv-blue);
    color: white;
    padding: 14px;
    font-size: 16px;
}

.btn-primary:hover {
    background: var(--biv-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 95, 143, 0.3);
}

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

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #FEE;
    color: var(--danger);
    border: 1px solid #FCC;
}

.d-none {
    display: none !important;
}

/* Portal Layout */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--biv-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--biv-border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--biv-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.sidebar-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--biv-text);
}

.sidebar-nav {
    padding: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--biv-gray);
    color: var(--biv-blue);
}

.nav-link.active {
    background: var(--biv-blue);
    color: white;
}

.nav-link i {
    font-size: 20px;
    width: 20px;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--biv-gray);
}

.top-bar {
    background: white;
    border-bottom: 1px solid var(--biv-border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--biv-text);
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--biv-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--biv-text);
    display: block;
}

.user-role {
    font-size: 12px;
    color: #6B7280;
}

.btn-logout {
    background: transparent;
    color: #6B7280;
    border: 1px solid var(--biv-border);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-logout:hover {
    background: var(--biv-gray);
    transform: none;
    box-shadow: none;
}

.content-area {
    padding: 32px;
}

.page-content {
    display: none;
}

.page-content:not(.d-none) {
    display: block;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--biv-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue {
    background: rgba(43, 95, 143, 0.1);
    color: var(--biv-blue);
}

.stat-icon.green {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.stat-icon.orange {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--biv-text);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
    border-bottom: 2px solid var(--biv-border);
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--biv-border);
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.badge-pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.badge-completed {
    background: rgba(91, 155, 213, 0.1);
    color: var(--biv-accent);
}

.badge-cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.badge-festgeld { background: rgba(43, 95, 143, 0.1); color: var(--biv-blue); }
.badge-tagesgeld { background: rgba(91, 155, 213, 0.1); color: var(--biv-accent); }
.badge-ipo { background: rgba(255, 193, 7, 0.1); color: var(--warning); }
.badge-aktien { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.badge-treuhand { background: rgba(23, 162, 184, 0.1); color: var(--info); }
.badge-kripto { background: rgba(108, 92, 231, 0.1); color: #6C5CE7; }

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #C82333;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-info:hover {
    background: #138496;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6B7280;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* Loading */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--biv-border);
    border-top-color: var(--biv-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Panel Specific Styles */
.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid var(--biv-border);
}

.logo-sm {
    width: 48px;
    height: 48px;
    background: var(--biv-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--biv-border);
    margin-top: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
}

.main-header {
    background: white;
    border-bottom: 1px solid var(--biv-border);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--biv-text);
    margin: 0;
}

.main-body {
    padding: 32px;
    max-width: 1600px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-badge {
    position: relative;
}

.mobile-menu-btn {
    display: none;
}

.data-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--biv-border);
}

.data-card-header h2,
.data-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--biv-text);
}

.data-card-body {
    padding: 0;
}

.data-card-body .table-responsive {
    margin: 0;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 16px;
}

.search-box .form-control {
    padding-left: 44px;
    border: 1px solid var(--biv-border);
    height: 42px;
}

.bank-card {
    background: white;
    border: 1px solid var(--biv-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.bank-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bank-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(43, 95, 143, 0.1);
    color: var(--biv-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--biv-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.stat-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.stat-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.stat-icon.rose {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.badge-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.badge-benutzer {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.empty-state p {
    color: #6B7280;
    font-size: 16px;
    margin: 0;
}

/* Table Improvements */
.table {
    margin: 0;
    min-width: 100%;
    table-layout: auto;
}

.table thead th {
    background: #F9FAFB;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #6B7280;
    padding: 14px 16px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
}

.table tbody td:last-child {
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #F9FAFB;
    transition: background 0.15s ease;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 12px 12px;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .main-body {
        padding: 20px;
    }

    .main-header {
        padding: 16px 20px;
    }

    .user-info .d-none {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }

    .top-bar {
        padding: 16px 20px;
    }

    .login-box {
        padding: 32px 24px;
    }

    .main-header h1 {
        font-size: 20px;
    }

    .search-box {
        max-width: 100%;
    }

    .table-responsive {
        border-radius: 0;
    }

    .stat-value {
        font-size: 24px;
    }

    .table tbody td {
        font-size: 13px;
        padding: 12px;
    }

    .table thead th {
        font-size: 10px;
        padding: 12px;
    }
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid var(--biv-border);
    padding: 24px;
    background: #FAFBFC;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--biv-text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--biv-border);
    padding: 20px 24px;
    background: #FAFBFC;
    border-radius: 0 0 16px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--biv-blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 143, 0.1);
}

.form-select {
    cursor: pointer;
}

.btn-group {
    display: inline-flex;
    gap: 4px;
}

.btn-group .btn {
    margin: 0;
}

.dropdown-menu {
    border: 1px solid var(--biv-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--biv-gray);
    color: var(--biv-blue);
}

.dropdown-item i {
    width: 18px;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--biv-border);
}

/* Button Improvements */
.btn {
    transition: all 0.2s ease;
    font-weight: 600;
    border: none;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(43, 95, 143, 0.2);
}

.btn-outline-primary {
    border: 1px solid var(--biv-blue);
    color: var(--biv-blue);
    background: white;
}

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

.btn-outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: white;
}

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

.btn-outline-light {
    border: 1px solid var(--biv-border);
    color: #6B7280;
    background: white;
}

.btn-outline-light:hover {
    background: var(--biv-gray);
    border-color: var(--biv-blue);
    color: var(--biv-blue);
}

.btn-light {
    background: #F3F4F6;
    color: #6B7280;
}

.btn-light:hover {
    background: #E5E7EB;
    color: var(--biv-text);
}

/* Action Buttons in Tables */
.table .btn-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* Sidebar Improvements */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

/* Loading State */
.loading-overlay.active {
    display: flex !important;
}

/* Portal Styles */
.portal-header {
    background: linear-gradient(135deg, #2B5F8F 0%, #1e3a5f 100%);
    color: white;
    padding: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-sm {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.dropdown-toggle-custom {
    cursor: pointer;
    user-select: none;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-profile-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name-header {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: white;
}

.user-email-header {
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

.btn-aufzahlung {
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-aufzahlung:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-auszahlung {
    border-radius: 12px;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-auszahlung:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@media (max-width: 767px) {
    .btn-aufzahlung .btn-text,
    .btn-auszahlung .btn-text {
        display: none;
    }

    .btn-aufzahlung,
    .btn-auszahlung {
        padding: 10px 16px;
    }
}

.nav-tabs {
    border: none;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
    border: none;
    color: #6B7280;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    background: #F3F4F6;
    color: var(--biv-blue);
}

.nav-tabs .nav-link.active {
    background: var(--biv-blue);
    color: white;
}

.portal-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.portal-stat-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.stat-icon.emerald {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.stat-icon.amber {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.stat-icon.rose {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}

.stat-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
    line-height: 1.4;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.chart-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chart-icon.blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.chart-icon.emerald {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.chart-icon.amber {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    word-break: break-word;
    line-height: 1.3;
}

.chart-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    word-break: break-word;
    line-height: 1.4;
}

.chart-card-body {
    padding: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--biv-blue), #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.section-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biv-blue), #1e3a5f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 600;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bank-account-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.bank-account-card:hover {
    border-color: var(--biv-blue);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.1);
}

.bank-account-card.primary {
    border-color: #10b981;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.bank-account-card h6 {
    color: #111827;
}

.bank-account-card .text-muted {
    color: #6b7280 !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Investment Cards */
.investment-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    height: 100%;
}

.investment-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.investment-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.investment-amount {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 12px 0;
}

.investment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.investment-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.investment-detail-label {
    color: #6B7280;
    font-weight: 500;
}

.investment-detail-value {
    color: #111827;
    font-weight: 600;
}

/* Table Enhancements for Portal */
.table thead th {
    background: #F9FAFB;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #6B7280;
    padding: 16px;
    border-bottom: 2px solid #E5E7EB;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
}

.table tbody tr:hover {
    background: #F9FAFB;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Status */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10B981, #059669) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
}

/* Responsive Portal */
@media (max-width: 768px) {
    .portal-header {
        padding: 16px 0;
    }

    .portal-header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-sm {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .portal-header h1 {
        font-size: 16px !important;
    }

    .portal-header small {
        font-size: 12px;
    }

    .stat-value {
        font-size: 20px !important;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .portal-stat-card {
        padding: 16px;
    }

    .chart-card {
        padding: 16px;
    }

    .chart-card-header {
        margin-bottom: 16px;
    }

    .chart-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .chart-title {
        font-size: 16px;
    }

    .chart-subtitle {
        font-size: 12px;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .investment-card {
        padding: 16px;
    }

    .investment-amount {
        font-size: 20px;
    }

    .nav-tabs {
        padding: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .table {
        font-size: 13px;
    }

    .table thead th {
        padding: 12px 8px;
        font-size: 10px;
    }

    .table tbody td {
        padding: 12px 8px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    * {
        max-width: 100%;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    main {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .row > * {
        padding-left: 6px;
        padding-right: 6px;
    }

    .g-3 {
        gap: 12px !important;
    }

    .g-4 {
        gap: 16px !important;
    }

    .portal-stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 16px !important;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .chart-card {
        padding: 12px;
    }

    .chart-title {
        font-size: 14px !important;
    }

    .chart-subtitle {
        font-size: 11px !important;
    }

    .section-header {
        gap: 12px;
    }

    .section-title {
        font-size: 16px !important;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 16px;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .investment-type-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Masaüstü için profil kartı görünürlüğü */
@media (min-width: 768px) {
    .dropdown-toggle-custom.d-none.d-md-block {
        display: block !important;
    }

    .user-profile-card {
        display: flex !important;
    }
}

/* Mobil için avatar görünürlüğü */
@media (max-width: 767px) {
    .dropdown-toggle-custom.d-md-none {
        display: block !important;
    }
}
