/* Custom Dashboard Styles - Salesmedia */
/* Brand Color: #fe0000 */

/* Dashboard Cards */
.dashboard-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.dashboard-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.dashboard-card .card-body {
    padding: 1.5rem !important;
}

/* Stat Numbers */
.dashboard-card .numbers p {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.5rem !important;
    color: #67748e !important;
}

.dashboard-card .numbers h5 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #344767 !important;
    margin-bottom: 0 !important;
}

/* Icon Shapes - Salesmedia Red Theme */
.icon-shape.bg-gradient-primary {
    background: linear-gradient(310deg, #fe0000 0%, #ff4545 100%) !important;
}

.icon-shape.bg-gradient-danger {
    background: linear-gradient(310deg, #ea0606 0%, #ff6b6b 100%) !important;
}

.icon-shape.bg-gradient-success {
    background: linear-gradient(310deg, #17c1e8 0%, #3acaeb 100%) !important;
}

.icon-shape.bg-gradient-warning {
    background: linear-gradient(310deg, #f53939 0%, #fbcf33 100%) !important;
}

.icon-shape {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    position: relative !important;
}

.icon-shape i {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

/* Information Update Card */
.info-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.info-card .card-header {
    background: linear-gradient(310deg, #fe0000 0%, #ff4545 100%) !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem !important;
}

.info-card .card-header h6 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-transform: none !important;
}

.info-card .card-body {
    padding: 2rem !important;
}

.info-card .card-body h3 {
    color: #344767 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.info-card .card-body ul {
    list-style: none !important;
    padding: 0 !important;
}

.info-card .card-body p {
    color: #67748e !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* Carousel Card */
.promo-carousel {
    border-radius: 15px !important;
    overflow: hidden !important;
}

.promo-carousel .carousel-inner {
    border-radius: 15px !important;
}

.promo-carousel .carousel-item {
    background: linear-gradient(310deg, #fe0000 0%, #ff4545 100%) !important;
}

.promo-carousel .carousel-caption h5 {
    font-size: 22px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.promo-carousel .carousel-caption p {
    font-size: 15px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive Spacing */
@media (max-width: 768px) {
    .dashboard-card .numbers h5 {
        font-size: 20px !important;
    }
    
    .dashboard-card .numbers p {
        font-size: 11px !important;
    }
    
    .icon-shape {
        width: 40px !important;
        height: 40px !important;
    }
    
    .info-card .card-header h6 {
        font-size: 16px !important;
    }
    
    .info-update-title {
        font-size: 16px !important;
    }
    
    .info-update-content {
        padding: 1rem !important;
    }
    
    .info-update-content .text-sm {
        font-size: 13px !important;
    }
    
    .promo-carousel .carousel-caption h5 {
        font-size: 18px !important;
    }
    
    .promo-carousel .carousel-caption p {
        font-size: 13px !important;
    }
    
    .promo-carousel .carousel-caption {
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .dashboard-card {
        margin-bottom: 1rem !important;
    }
    
    .info-update-content {
        padding: 0.875rem !important;
    }
    
    .info-update-title {
        font-size: 15px !important;
    }
    
    .info-card .card-body {
        padding: 1.5rem !important;
    }
}

/* Monthly Stats Consistency */
.monthly-stats-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

.monthly-stats-card .card-body {
    padding: 1.5rem !important;
}

/* Info Update Styling */
.info-update-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.info-update-content:hover {
    box-shadow: 0 4px 16px rgba(254, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #fe0000;
}

.info-update-content:last-child {
    margin-bottom: 0;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(310deg, #fe0000 0%, #ff4545 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.info-badge.badge-motivasi {
    background: linear-gradient(310deg, #17c1e8 0%, #3acaeb 100%);
}

.info-badge.badge-update {
    background: linear-gradient(310deg, #82d616 0%, #98ec2d 100%);
}

.info-badge.badge-promo {
    background: linear-gradient(310deg, #f53939 0%, #fbcf33 100%);
}

.info-badge.badge-event {
    background: linear-gradient(310deg, #7928ca 0%, #ff0080 100%);
}

.info-badge.badge-tips {
    background: linear-gradient(310deg, #f5365c 0%, #f56036 100%);
}

.info-badge.badge-berita {
    background: linear-gradient(310deg, #11cdef 0%, #1171ef 100%);
}

.info-badge i {
    font-size: 12px;
}

.info-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.info-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #8392AB;
    font-size: 12px;
    font-weight: 500;
}

.info-date i {
    font-size: 13px;
}

.info-update-title {
    color: #344767 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 0.875rem !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-preview {
    color: #67748e;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-preview p {
    margin: 0;
}

.info-content {
    color: #67748e;
    font-size: 14px;
    line-height: 1.7;
}

.info-content p {
    margin-bottom: 0.75rem;
    color: #67748e;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong,
.info-content b {
    color: #344767;
    font-weight: 600;
}

.info-content ul,
.info-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 0.375rem;
}

.info-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.info-date-posted {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #8392AB;
    font-size: 13px;
}

.info-date-posted i {
    font-size: 14px;
}

.btn-info-detail {
    background: transparent;
    border: 1.5px solid #fe0000;
    color: #fe0000;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-info-detail:hover {
    background: #fe0000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.3);
}

.btn-info-detail i {
    font-size: 12px;
}

.info-content,
.info-update-content .text-sm {
    color: #67748e;
    font-size: 14px;
    line-height: 1.7;
}

/* Info Update Images */
.info-content img,
.info-update-content img,
.card-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

/* Force image visibility */
.info-content img[src],
.info-update-content img[src] {
    visibility: visible !important;
    opacity: 1 !important;
}

.info-content iframe,
.info-content video,
.info-update-content iframe,
.info-update-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 300px !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
}

.info-divider {
    border-top: 2px solid #e9ecef !important;
    margin: 1.5rem 0 !important;
}

/* Full Width Info Card */
.info-card {
    min-height: 400px !important;
}

.info-card .card-body {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 2rem !important;
}

.info-card .card-header {
    background: linear-gradient(310deg, #fe0000 0%, #1a1a1a 100%) !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.25rem 2rem !important;
    box-shadow: 0 4px 20px 0 rgba(255, 255, 255, 0.1), 0 2px 10px 0 rgba(255, 255, 255, 0.08) !important;
}

.info-card .card-header h6 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
}

.info-card .card-header h6:before {
    content: "📢";
    font-size: 20px;
}

/* Responsive Layout for Images */
@media (min-width: 1200px) {
    .info-content img,
    .info-update-content img {
        max-width: 700px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .info-content img,
    .info-update-content img {
        max-width: 600px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .info-content img,
    .info-update-content img {
        max-width: 100% !important;
    }
    
    .info-card .card-body {
        padding: 1.5rem !important;
    }
    
    .info-update-content {
        padding: 1.25rem !important;
    }
    
    .info-update-title {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .info-card .card-body {
        padding: 1.25rem !important;
    }
    
    .info-update-content {
        padding: 1rem !important;
    }
    
    .info-update-title {
        font-size: 15px !important;
    }
    
    .info-badge {
        font-size: 10px !important;
        padding: 0.3rem 0.7rem !important;
    }
    
    .btn-info-detail {
        font-size: 12px !important;
        padding: 0.4rem 1rem !important;
    }
    
    /* Responsive Table */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .table {
        min-width: 800px !important;
    }
    
    .table th,
    .table td {
        font-size: 11px !important;
        padding: 0.75rem 0.5rem !important;
        white-space: nowrap !important;
    }
    
    .text-truncate {
        max-width: 150px !important;
    }
}

/* Table Info Styles */
.table-info-header {
    background: linear-gradient(310deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #fe0000 !important;
}

.table-info-header th {
    color: #344767 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.table tbody tr {
    transition: all 0.2s ease !important;
}

.table tbody tr:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.01) !important;
}

.table .badge {
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

/* Info Management Card Styles */
.info-management-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

.info-management-card .card-header {
    background: linear-gradient(310deg, #fe0000 0%, #1a1a1a 100%) !important;
    border-radius: 15px 15px 0 0 !important;
    box-shadow: 0 4px 20px 0 rgba(255, 255, 255, 0.1), 0 2px 10px 0 rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
}

.info-management-card .card-header h6 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.3px !important;
    font-family: 'Open Sans', sans-serif !important;
}

.info-management-card .card-body {
    padding: 1.5rem !important;
}

/* User & Role Management Card - Same styling as Info */
.user-management-card,
.role-management-card,
.merchant-management-card,
.driver-management-card,
.promotion-management-card,
.chart-management-card,
.report-management-card,
.commission-management-card,
.course-management-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

.user-management-card .card-header,
.role-management-card .card-header,
.merchant-management-card .card-header,
.driver-management-card .card-header,
.promotion-management-card .card-header,
.chart-management-card .card-header,
.report-management-card .card-header,
.commission-management-card .card-header,
.course-management-card .card-header {
    background: linear-gradient(310deg, #fe0000 0%, #1a1a1a 100%) !important;
    border-radius: 15px 15px 0 0 !important;
    box-shadow: 0 4px 20px 0 rgba(255, 255, 255, 0.1), 0 2px 10px 0 rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
}

.user-management-card .card-header h6,
.role-management-card .card-header h6,
.merchant-management-card .card-header h6,
.driver-management-card .card-header h6,
.promotion-management-card .card-header h6,
.chart-management-card .card-header h6,
.report-management-card .card-header h6,
.commission-management-card .card-header h6,
.course-management-card .card-header h6 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.3px !important;
    font-family: 'Open Sans', sans-serif !important;
}

.user-management-card .card-body,
.role-management-card .card-body,
.merchant-management-card .card-body,
.driver-management-card .card-body,
.promotion-management-card .card-body,
.chart-management-card .card-body,
.report-management-card .card-body,
.commission-management-card .card-body,
.course-management-card .card-body {
    padding: 1.5rem !important;
}

/* Button Styles for Info Management */
.btn-primary {
    background: linear-gradient(310deg, #fe0000 0%, #ff4545 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.4) !important;
}

/* Search Input Styling */
.form-control {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: #fe0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.15) !important;
}

/* Responsive Table for Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .table th,
    .table td {
        font-size: 12px !important;
        padding: 0.85rem 0.75rem !important;
    }
    
    .text-truncate {
        max-width: 200px !important;
    }
    
    .info-badge {
        font-size: 11px !important;
        padding: 0.4rem 0.8rem !important;
    }
}
