/* Dashboard Kartları Stilleri */
.dashboard-summary-row {
    margin: -4px;  /* Negative margin to offset card padding */
    margin-top: 0;
}

.dashboard-summary-row .col-md-4 {
    padding: 4px;
    padding-top: 0px;
}

.dashboard-summary-row .card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    height: 140px;
}

.dashboard-summary-row .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-summary-row .card-body {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-summary-row .text-success {
    color: #3BB77E !important;
}

.dashboard-summary-row .text-primary {
    color: #3BB77E !important;
}

.dashboard-summary-row .fi-rs-info {
    font-size: 18px;
    margin-right: 8px;
    color: #3BB77E;
}

.dashboard-summary-row .fw-bold {
    font-weight: 600 !important;
}

.dashboard-summary-row .small {
    font-size: 12px;
    color: #6c757d;
}

.dashboard-summary-row .mt-3 {
    margin-top: 0rem !important;
}

.dashboard-summary-row .mb-2 {
    margin-bottom: 0.5rem !important;
}

.dashboard-summary-row a {
    text-decoration: none;
    color: #3BB77E;
    display: inline-flex;
    align-items: center;
}

.dashboard-summary-row a:hover {
    color: #2a9d8f;
}

.dashboard-summary-row a u {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.dashboard-summary-row .d-flex {
    display: flex !important;
}

.dashboard-summary-row .justify-content-between {
    justify-content: space-between !important;
    margin-top: 10px;
}

.dashboard-summary-row .align-items-center {
    align-items: center !important;
}

.dashboard-summary-row .fi-rs-copy {
    font-size: 14px;
    margin-left: 4px;
}

/* Referans Linkleri Kartı için özel stiller */
#card-referral_links .card-body {
    padding-left: 3px !important;
}

#card-referral_links .text-white-50 {
    font-size: 11px; /* 1px azaltıldı (varsayılan 12px'den) */
    line-height: 1.2;
    word-break: break-all;
}

/* Dashboard Kartları için Modern Stiller */
.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card .card-body {
    position: relative;
    z-index: 1;
}

.dashboard-card h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-card .fs-4 {
    font-size: 1.5rem !important;
}

.dashboard-card .fs-5 {
    font-size: 1.25rem !important;
}

.dashboard-card .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Gradient Arka Planlar */
.dashboard-card.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card.gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dashboard-card.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard-card.gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.dashboard-card.gradient-green {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.dashboard-card.gradient-teal {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Dashboard Accordion Menu Container */
.dashboard-menu {
    background-color: #f8f9fa;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Dashboard Accordion Menu Stilleri */
.dashboard-menu .accordion {
    border: none;
    width: 100%;
}

.dashboard-menu .accordion-item {
    border: none;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-menu .accordion-button {
    background-color: #f8f9fa;
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
}

    .dashboard-menu .accordion-button:not(.collapsed) {
        background-color: #a1c3b3;
        color: white;
        box-shadow: none;
    }

.dashboard-menu .accordion-button:focus {
    border-color: #3BB77E;
    box-shadow: 0 0 0 0.25rem rgba(59, 183, 126, 0.25);
}

.dashboard-menu .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.dashboard-menu .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.dashboard-menu .accordion-collapse {
    border: none;
}

.dashboard-menu .accordion-body {
    padding: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.dashboard-menu .accordion-body .nav {
    margin: 0;
    padding: 8px 0;
}

.dashboard-menu .accordion-body .nav-item {
    margin: 0;
}

.dashboard-menu .accordion-body .nav-link {
    color: #6c757d;
    padding: 8px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.dashboard-menu .accordion-body .nav-link:hover {
    background-color: #e9ecef;
    color: #3BB77E;
    border-left-color: #3BB77E;
    text-decoration: none;
}

.dashboard-menu .accordion-body .nav-link.active {
    background-color: #3BB77E;
    color: white;
    border-left-color: #2a9d8f;
}

/* Dashboard ve Çıkış linklerini accordion buton gibi stil */
.dashboard-menu .accordion-item h2 a.nav-link {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: none;
    width: 100%;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.dashboard-menu .accordion-item h2 a.nav-link:hover {
    background-color: #e9ecef;
    color: #3BB77E;
    text-decoration: none;
}

.dashboard-menu .accordion-item h2 a.nav-link.active {
    background-color: #3BB77E;
    color: white;
}

/* Çıkış Yap butonu için özel stil */
.dashboard-menu .accordion-item h2 a.text-danger {
    color: #dc3545 !important;
    background-color: #f8f9fa;
}

.dashboard-menu .accordion-item h2 a.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24 !important;
    text-decoration: none;
}

/* Icon stilleri */
.dashboard-menu i {
    font-size: 16px;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .dashboard-menu .accordion-button {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .dashboard-menu .accordion-body .nav-link {
        padding: 6px 20px;
        font-size: 13px;
    }
}

/* Custom JQuery UI Tabs */
.custom-tabs {
    border: none;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.custom-tabs .ui-widget-header {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0;
}

.custom-tabs .ui-tabs-nav {
    display: flex;
    padding: 0;
    margin: 0;
}

.custom-tabs .ui-tabs-nav li {
    list-style: none;
    margin: 0 0.5rem 0 0;
    border: 1px solid #ddd;
    border-bottom: none;
    background: #f1f1f1;
    border-radius: 6px 6px 0 0;
    transition: background-color 0.3s;
}

.custom-tabs .ui-tabs-nav li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.custom-tabs .ui-tabs-nav li.ui-tabs-active {
    background: #fff;
    border-bottom-color: #fff;
    position: relative;
    top: 1px;
}

.custom-tabs .ui-tabs-nav li.ui-tabs-active a {
    color: #3BB77E;
}

.custom-tabs .ui-tabs-panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 0 8px 8px 8px;
}

/* Mobilde kartlar arası boşluğu azalt */
@media (max-width: 767.98px) {
    .dashboard-summary-row {
        margin: -4px !important;  /* Daha az negative margin */
    }
    
    .dashboard-summary-row .col-sm-12 {
        padding: 4px !important;  /* Daha az padding */
        margin-bottom: 8px !important;  /* Kartlar arası boşluk */
    }
    
    .dashboard-summary-row .col-sm-12:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Kartlar arası boşluk */
    .dashboard-card {
        margin-bottom: 8px !important;
    }
    
    /* Row'lar arası boşluk */
    .dashboard-summary-row {
        margin-bottom: 8px !important;
    }
    
    .dashboard-summary-row:last-child {
        margin-bottom: 0 !important;
    }
}
