.livewire-chart-container {
    width: 100%;
    height: 350px;
}

/* Line Chart Styling */
.livewire-line-chart {
    font-family: 'Karla', sans-serif;
}

.livewire-line-chart .line {
    stroke: #073F3B;
    stroke-width: 2px;
    fill: none;
}

.livewire-line-chart .area {
    fill: url(#gradient);
    opacity: 0.3;
}

.livewire-line-chart .grid line {
    stroke: #E5E6EB;
    stroke-dasharray: 4;
}

.livewire-line-chart .axis text {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    color: #8B8BA7;
}

/* Column Chart Styling */
.livewire-column-chart .column {
    fill: #073F3B;
    border-radius: 8px 8px 0 0;
}

.livewire-column-chart .axis text {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    color: #9CA3AF;
}

/* Pie Chart Styling */
.livewire-pie-chart {
    max-width: 200px;
    margin: 0 auto;
}
/* Stats Cards */
.stats-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.stats-label {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #696969;
}

.stats-value {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 31px;
    color: #1E1E1E;
}

.stats-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Karla', sans-serif;
}

.stats-change.positive .change-percent {
    color: #22C55E;
    font-weight: 500;
    font-size: 16px;
}

.stats-change.negative .change-percent {
    color: #D43737;
    font-weight: 500;
    font-size: 16px;
}

.stats-change .change-text {
    color: #696969;
    font-weight: 400;
    font-size: 16px;
}

/* Chart Cards */
.chart-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.chart-header-simple {
    padding: 20px;
}

.chart-title {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1E1E1E;
    margin: 0;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0px 1px 6px rgba(30, 30, 30, 0.16);
    border-radius: 8px;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #2A2A2A;
    cursor: pointer;
}

.chart-body {
    padding: 20px;
}

/* Table Styling */
.table-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    padding: 8px 20px;
    background: #F5F6F7;
    border-top: 1px solid #E5E7E8;
}

.table-header h3 {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1E1E1E;
    margin: 0;
}

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

.custom-table thead th {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1E1E1E;
    padding: 20px;
    text-align: left;
    border-top: 1px solid #E5E7E8;
    border-bottom: 1px solid #E5E7E8;
}

.custom-table tbody td {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1E1E1E;
    padding: 20px;
    border-bottom: 1px solid #E5E7E8;
}

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

.user-name {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #1E1E1E;
}

.user-contact {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #6B7280;
}

/* Device Table */
.device-table {
    padding: 20px;
    border-top: 1px solid #E5E7E8;
}

.device-table th {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #1E1E1E;
    padding: 12px 0;
}

.device-table td {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1E1E1E;
    padding: 12px 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

/* Content List */
.content-list {
    padding: 20px;
}

.content-list-header {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 20px;
    margin-bottom: 16px;
    align-items: center;
    padding-right: 20px;
}

.content-title-col,
.content-views-col {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #9CA3AF;
}

.content-views-col {
    text-align: right;
    padding-right: 10px;
}

.content-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px 20px 16px 0;
    border-bottom: 1px dashed #E5E6EB;
}

.content-item:last-child {
    border-bottom: none;
}

.content-title {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1E1E1E;
}

.content-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 2 / 4;
}

.content-views {
    font-family: 'Karla', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1E1E1E;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.content-bar {
    height: 20px;
    background: #073F3B;
    border-radius: 0px 4px 4px 0px;
    transition: width 0.3s ease;
    flex-shrink: 0;
    margin-right: 20px;
    max-width: calc(100% - 90px);
}

/* Activity Log */
.activity-log-content {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 16px;
    margin-bottom: 35px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #9CA3AF;
    border-radius: 50%;
    opacity: 0.8;
    flex-shrink: 0;
}

.timeline-line {
    width: 1px;
    flex: 1;
    background: #E5E7EB;
    margin-top: 4px;
    min-height: 60px;
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-date {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #696969;
}

.activity-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-action {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1E1E1E;
    flex: 1;
}

.activity-time-dot {
    font-size: 16px;
    color: #1E1E1E;
}

.activity-time {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #1E1E1E;
}

.activity-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: #EBEBEB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #1E1E1E;
}

.user-name-small {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #696969;
}

/* Calendar */
.calendar-container {
    padding: 20px;
}

.calendar-divider {
    width: 100%;
    height: 1px;
    background: #DEE6EA;
    margin-bottom: 20px;
}

.events-title {
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1E1E1E;
    margin: 0 0 20px 0;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-name {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #3C3C3C;
}

.event-date-small {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #4A5154;
}

.event-date-hijri {
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #073F3B;
}

/* Custom Chart Styling */
canvas {
    max-height: 100% !important;
}

/* Line Chart Customization */
.livewire-line-chart canvas {
    height: 100% !important;
}

/* Column Chart Customization */
.livewire-column-chart canvas {
    height: 100% !important;
}

/* Pie Chart Customization */
.livewire-pie-chart canvas {
    max-width: 200px !important;
    margin: 0 auto !important;
}

/* Chart.js tooltip styling */
.chartjs-tooltip {
    background: #111827 !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    font-family: 'Karla', sans-serif !important;
}