/**
 * Custom Dashboard Styles
 * Premium Corporate Design - Anthony Jackson Admin
 */

/* ===============================================
   SECTION TITLES - Compact & Corporate
   =============================================== */
.section-body h2.d-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin: 0 0 10px 0;
    padding: 6px 0;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-body h2.d-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* ===============================================
   STAT CARDS - Original Style with Compact Size
   =============================================== */
.card-statistic-1 {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    padding: 0 !important;
    margin-bottom: 12px !important;
    overflow: hidden;
}

.card-statistic-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-statistic-1 .card-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    position: absolute;
    top: 10px;
    left: 10px;
}

.card-statistic-1 .card-wrap {
    padding: 10px 10px 10px 54px !important;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-statistic-1 .card-header {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.card-statistic-1 .card-header h4 {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-statistic-1 .card-body {
    padding: 3px 0 0 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1 !important;
}

/* ===============================================
   ICON COLORS - Modern Gradients
   =============================================== */
.card-statistic-1 .card-icon.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

.card-statistic-1 .card-icon.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.card-statistic-1 .card-icon.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.card-statistic-1 .card-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.card-statistic-1 .card-icon.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

/* ===============================================
   DASHBOARD CARDS - Single Flow Layout
   =============================================== */
.dashboard-cards {
    margin-left: -6px !important;
    margin-right: -6px !important;
}

.dashboard-cards>[class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Make cards take 16.66% width (6 per row) on xl screens */
.dashboard-cards .col-xl-2 {
    flex: 0 0 16.66% !important;
    max-width: 16.66% !important;
}

@media (max-width: 1200px) {
    .dashboard-cards .col-xl-2 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

@media (max-width: 992px) {
    .dashboard-cards .col-xl-2 {
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
    }
}

@media (max-width: 768px) {
    .dashboard-cards .col-xl-2 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ===============================================
   CHARTS SECTION - Clean & Professional
   =============================================== */
.charts-main {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.charts-main .card-header {
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    padding: 14px 18px;
}

.charts-main .card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.crancy-chart__inside {
    height: 250px !important;
}

/* ===============================================
   TABLE SECTION - Compact Design
   =============================================== */
.section-body .card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-body .card .card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
}

.section-body .card .card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.table thead th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 8px;
}

.table tbody td {
    font-size: 12px;
    color: #475569;
    padding: 8px;
    vertical-align: middle;
}

/* ===============================================
   BADGES - Modern Style
   =============================================== */
.badge {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.badge-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.badge-warning {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.badge-info {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

/* ===============================================
   ACTION BUTTONS - Compact
   =============================================== */
.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #fff;
}

/* ===============================================
   SECTION HEADER - Clean
   =============================================== */
.section-header {
    padding: 12px 0;
    margin-bottom: 6px;
}

.section-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

/* ===============================================
   SPACING ADJUSTMENTS
   =============================================== */
/* ===============================================
   INTEGRATION BUTTONS - Corporate Style
   =============================================== */
.integration-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-integration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-right: 10px;
    /* Butonlar arası boşluk eklendi */
}

.btn-integration:last-child {
    margin-right: 0;
}

.btn-integration i {
    font-size: 16px;
}

.btn-integration:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Amazon Brand Style */
.btn-integration.amazon:hover {
    background: #232f3e;
    color: #ffffff;
    border-color: #232f3e;
}

.btn-integration.amazon:hover i {
    color: #ff9900;
}

/* Trendyol Brand Style */
.btn-integration.trendyol:hover {
    background: #f27a1a;
    color: #ffffff;
    border-color: #f27a1a;
}

/* N11 Brand Style */
.btn-integration.n11:hover {
    background: #e11d23;
    color: #ffffff;
    border-color: #e11d23;
}

/* Hepsiburada Brand Style */
.btn-integration.hepsiburada:hover {
    background: #fe6111;
    color: #ffffff;
    border-color: #fe6111;
}

@media (max-width: 992px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .integration-buttons {
        flex-wrap: wrap;
    }
}