/*
 * Modern Home Dashboard Design
 * Beautiful Analytics with System Color #80cbc4
 */

/* Container Styling */
.custom-container {
    background: linear-gradient(135deg, #f5fffe 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
}

.content-header-custom h1 {
    color: #2c3e50 !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    text-shadow: 0 2px 4px rgba(128, 203, 196, 0.1);
    margin-bottom: 30px !important;
}

/* Info Box Styling */
.info-box-new-style {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%) !important;
    border: 1px solid rgba(128, 203, 196, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(128, 203, 196, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
    min-height: 120px !important;
    margin-bottom: 20px !important;
}

.info-box-new-style:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(128, 203, 196, 0.25) !important;
    border-color: rgba(128, 203, 196, 0.4) !important;
}

/* Info Box Icons */
.info-box-icon {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(128, 203, 196, 0.3) !important;
    transition: all 0.3s ease !important;
}

.info-box-new-style:hover .info-box-icon {
    transform: scale(1.1) rotate(5deg) !important;
}

.info-box-icon.bg-aqua {
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
}

.info-box-icon.bg-green {
    background: linear-gradient(135deg, #9dd8d2 0%, #80cbc4 100%) !important;
}

.info-box-icon.bg-yellow {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%) !important;
}

.info-box-icon.bg-red {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%) !important;
}

/* Info Box Content */
.info-box-content {
    padding: 15px 20px !important;
}

.info-box-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #546e7a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.info-box-number {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #80cbc4 !important;
    text-shadow: 0 2px 4px rgba(128, 203, 196, 0.2) !important;
}

/* Custom Info Boxes with Charts */
.custom-info-box {
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
}

.custom-info-box .info-box-text,
.custom-info-box .info-box-number {
    color: white !important;
    position: relative !important;
    z-index: 2 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: white !important;
    background-clip: initial !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.custom-expense-box {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%) !important;
}

/* Animated Chart Bars */
.custom-chart-bars {
    position: absolute !important;
    bottom: 0 !important;
    right: 20px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 4px !important;
    height: 60px !important;
    opacity: 0.3 !important;
}

.custom-chart-bars .bar {
    width: 8px !important;
    background: white !important;
    border-radius: 4px 4px 0 0 !important;
    animation: barAnimation 2s ease-in-out infinite !important;
}

.custom-chart-bars .bar-1 {
    height: 30% !important;
    animation-delay: 0s !important;
}

.custom-chart-bars .bar-2 {
    height: 60% !important;
    animation-delay: 0.2s !important;
}

.custom-chart-bars .bar-3 {
    height: 45% !important;
    animation-delay: 0.4s !important;
}

.custom-chart-bars .bar-4 {
    height: 75% !important;
    animation-delay: 0.6s !important;
}

.custom-chart-bars .bar-5 {
    height: 50% !important;
    animation-delay: 0.8s !important;
}

@keyframes barAnimation {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.2);
    }
}

/* Dashboard Filter Button */
#dashboard_date_filter {
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(128, 203, 196, 0.3) !important;
    transition: all 0.3s ease !important;
}

#dashboard_date_filter:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(128, 203, 196, 0.4) !important;
}

/* Location Selector */
#dashboard_location{
    background: white !important;
    border: 2px solid #80cbc4 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    box-shadow: 0 2px 10px rgba(128, 203, 196, 0.1) !important;
    transition: all 0.3s ease !important;
    min-height: 40px;
}

#dashboard_location:focus,
.locat:focus {
    outline: none !important;
    border-color: #66b8ae !important;
    box-shadow: 0 0 0 4px rgba(128, 203, 196, 0.2) !important;
}

/* Widget Boxes */
.box-primary,
.box-warning {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%) !important;
    border: 1px solid rgba(128, 203, 196, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(128, 203, 196, 0.1) !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
    padding: 0px;
}

.box-header {
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
    color: white !important;
    padding: 20px !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0 !important;
}

.box-header h3,
.box-title {
    color: white !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.box-body {
    padding: 20px !important;
    background: white !important;
}

/* Chart Containers */
#sells_chart_1,
#sells_chart_2 {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(128, 203, 196, 0.1) !important;
}

/* Tables */
.table-bordered {
    border: 1px solid rgba(128, 203, 196, 0.2) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.table thead th {
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
    padding: 15px 12px !important;
    border: none !important;
}

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

.table tbody tr:hover {
    background-color: rgba(128, 203, 196, 0.05) !important;
    transform: scale(1.01) !important;
}

.table tbody td {
    padding: 12px !important;
    vertical-align: middle !important;
    border-color: rgba(128, 203, 196, 0.1) !important;
}

/* Column Spacing */
.col-custom {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .info-box-new-style {
        margin-bottom: 15px !important;
    }

    .info-box-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
    }

    .info-box-number {
        font-size: 22px !important;
    }

    .content-header-custom h1 {
        font-size: 24px !important;
    }
}

/* Loading Spinner */
.fa-sync.fa-spin {
    color: #80cbc4 !important;
}

/* Button Actions in Tables */
.btn-primary {
    background: linear-gradient(135deg, #80cbc4 0%, #66b8ae 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(128, 203, 196, 0.3) !important;
}

.btn-info {
    background: linear-gradient(135deg, #9dd8d2 0%, #80cbc4 100%) !important;
    border: none !important;
    border-radius: 8px !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%) !important;
    border: none !important;
    border-radius: 8px !important;
}

/* Select2 Dropdown */
.select2-container--default .select2-selection--single {
    background: white !important;
    border: 2px solid #80cbc4 !important;
    border-radius: 12px !important;
    height: 42px !important;
    padding: 6px 12px !important;
}

.select2-container--default .select2-selection--single:focus {
    outline: none !important;
    border-color: #66b8ae !important;
    box-shadow: 0 0 0 4px rgba(128, 203, 196, 0.2) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2c3e50 !important;
    line-height: 30px !important;
    font-weight: 600 !important;
}


@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Card Hover Effects */
.info-box-new-style::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(128, 203, 196, 0.05),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.info-box-new-style:hover::after {
    animation: shine 1s ease;
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Status Badges */
.badge {
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.badge-success {
    background: linear-gradient(135deg, #9dd8d2 0%, #80cbc4 100%) !important;
}

.badge-warning {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%) !important;
}

.badge-danger {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%) !important;
}

/* Widget Icon Styling */
.box-header .fa,
.box-header .fas,
.box-header .ion {
    margin-right: 10px !important;
    font-size: 20px !important;
    vertical-align: middle !important;
}

/* Tooltip Enhancement */
.tooltip-inner {
    background: #2c3e50 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
}

/* Smooth Page Load Animation */
.content-custom {
    animation: fadeInUp 0.6s ease-out !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Box Number Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.info-box-number {
    animation: countUp 0.5s ease-out !important;
}
