/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --graphina-primary: #C8175D;
    --graphina-secondary: #666666;
    --graphina-border: #E0E5F2;
    --graphina-success: #22C55E;
    --graphina-background: #F9FAFB;
    --graphina-white: #FFFFFF;
    --graphina-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --graphina-text-color: #5F6B79;
    --graphina-title-color: #18283C;
    --graphina-danger-color: #B83133;
    --graphina-tab-color: #1D2327;
}

a:focus {
    outline: none;
    box-shadow: none;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-06 {
    max-width: 50%;
    flex: 0 0 50%;
}
/* loader */
.graphina-admin-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphina-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #374151;
    min-height: 100vh;
}

.graphina-settings {
    padding: 30px 30px 30px 15px;
}
.btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Tab Navigation */
.graphina-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid var(--graphina-primary);
}

.graphina-tab-item {
    padding: 16px 32px;
    cursor: pointer;
    position: relative;
    color: var(--graphina-tab-color);
    background: var(--graphina-white);
    border-radius: 8px 8px 0 0;
    border: 2px solid var(--graphina-white);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .45s ease 0s;
}
.graphina-tabs .tab {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}
.graphina-tab-item img{
    height: 20px;
}

.graphina-tab-item.active-tab {
    border-color: var(--graphina-primary);
}

.graphina-tab-detail {
    background: var(--graphina-white);
    padding: 16px;
}

.grapgine-title-section {
    border-bottom: 1px solid var(--graphina-border);
    margin-bottom: 32px;
}

.graphina-element-flex{
    display: flex;
    justify-content: space-between;
}
.graphina-clear-cache{
    height: 40px;
}

/* general setting */
.graphina-admin-charts-setting {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    font-size: 16px;
}
.graphina-admin-charts-setting label {
    width: 18%;
    color: var(--graphina-title-color);
    font-size: 16px;
}

.graphina-language-code{
    color: var(--graphina-title-color);
    font-size: 16px;
}

.graphina-admin-charts-setting .graphina-form-control {
    width: 60%;
    max-width: 100%;
}

.graphina-chart-note {
    margin-top: -30px;
    margin-bottom: 40px;
    display: block;
}

.graphina-admin-charts-setting input[type=checkbox], 
.graphina-admin-charts-setting input[type=radio] {
    height: 25px;
    width: 25px;
}

.graphina-admin-charts-setting input[type=checkbox]:checked::before {
    height: 25px;
    width: 25px;
    margin: -2px 0 0 -2px;
}


/* elements */
.chart-types {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.chart-types h1 {
    margin: 0;
}

.chart-types .actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Chart grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 64px;
}

.chart-item {
    background: #F9F9F9;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-icon img{
    width: 40px;
}

.chart-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-badge {
    background: var(--graphina-primary);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* buttons */
.graphina-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.graphina-btn-link {
    background: transparent;
    color: var(--graphina-primary);
    text-decoration: underline;
    padding: 0;
    border: none;
}

.graphina-btn-primary {
    color: var(--graphina-white);
    background: var(--graphina-primary);
}

.graphina-btn-danger {
    color: var(--graphina-white);
    background: var(--graphina-danger-color);
}
.graphina-btn-outline-primary{
    background-color: var(--graphina-white);
    border-radius: 10px;
    border: 1px solid var(--graphina-primary);
    color: var(--graphina-primary);
}
.graphina-btn-outline-title{
    background-color: var(--graphina-white);
    border-radius: 10px;
    border: 1px solid var(--graphina-title-color);
    color: var(--graphina-title-color);
}

/* inputs */
input.graphina-form-control,
select.graphina-form-control {
    width: 100%;
    height: 45px;
    border: 1px solid var(--graphina-border);
}

/* Chart Grid */
.graphina-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.graphina-chart-item {
    background-color: var(--graphina-white);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--graphina-shadow);
}

.graphina-chart-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.graphina-pro-badge {
    background-color: var(--graphina-primary);
    color: var(--graphina-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}



/* Database Form */
.graphina-database-form {
    background-color: var(--graphina-white);
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.graphina-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.graphina-connection-table{
    width: 100%;
    margin-top: 60px;
}

.graphina-connection-table th,
.graphina-connection-table td {
    text-align: left;
}

.graphina-connection-table td {
    padding: 24px 18px;
}

.graphina-connection-table th {
    border-bottom: 1px solid var(--graphina-border);
    background-color: var(--graphina-background);
    color: var(--graphina-title-color);
    font-weight: 400;
    padding: 22px 18px;
}
.graphina-connection-table tr th.text-end{
    text-align: end;
}

.graphina-action-btn{
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: end;
    flex-wrap: wrap;
}
/* Comparison Table */

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

.graphina-table th,
.graphina-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--graphina-border);
}

.graphina-table th {
    background-color: var(--graphina-background);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .graphina-tabs {
        padding: 0 16px;
        gap: 16px;
        overflow-x: auto;
    }

    .graphina-charts-header {
        flex-direction: column;
        gap: 16px;
    }

    .graphina-chart-grid {
        grid-template-columns: 1fr;
    }
    .graphina-connection-table{
        margin-top: 32px;
    }
}


.graphina-thin-line {
    width: 90%;
    /* Line width set to 80% of the container */
    height: 1px;
    /* Thin line */
    background-color: #ccc;
    /* Light gray color */
    border: none;
    /* No border */
    margin: 10px auto;
    /* Center alignment (horizontal) */
}


/* Chart type selection header */
.chart-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    color: var(--text-gray);
}

.chart-type.active {
    color: #000;
    border-bottom: 2px solid var(--graphina-primary);
    margin-bottom: -11px;
}

/* Toggle switch */

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle input:checked+.toggle-slider {
    background-color: var(--graphina-success);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Toggle Switch */
.graphina-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.graphina-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.graphina-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .4s;
    border-radius: 34px;
}

.graphina-toggle label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.graphina-toggle input:checked+label {
    background-color: var(--graphina-success);
}

.graphina-toggle input:checked+label:before {
    transform: translateX(20px);
}


.graphina-chart-type img{
    width: 40px;
}

#graphina-apex-chart{
    display: none;
}
#graphina-apex-tree-charts{
    display: none;
}
#graphina-google-chart{
    display: none;
} 
#graphina-table{
    display: none;
}
#graphina-pro-elements{
    display: none;
}

.graphina-title {
    text-align: center;
}
.graphina-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.graphina-table th, .graphina-table td {
    border: 1px solid #ddd;
    padding: 18px 24px;
    text-align: left;
}
.graphina-table th {
    background-color: #E8E9EB;
    color: #18283C;
    font-weight: 600;
}

.graphina-table td.graphina-icon {
    text-align: center;
}

.graphina-icon {
    font-size: 18px;
    text-align: center;
}
.graphina-check {
    color: green;
}
.graphina-cross {
    color: red;
}

.graphina-loader-svg{
    background-image: url('../images/graphina-loader.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
}

.graphina-area-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-tree-chart-svg{
    background-image: url('../images/tree-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-brush-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-bubble-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-candle-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-counter-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-column-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-distribute-column-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-donut-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-heatmap-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-line-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-mix-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-nestedcolumn-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-pie-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-polar-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-radar-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-radial-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-scatter-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-timeline-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-bar-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-geo-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-gauge-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-gantt-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-org-chart-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}
.graphina-data-table-svg{
    background-image: url('../images/area-chart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    height: 30px;
    width: 100px;
}

.graphina-pro-module {
    position: relative;
    opacity: 0.6; /* Makes it look disabled */
    pointer-events: none; /* Prevents interaction */
    user-select: none; /* Prevents text selection */
}
.graphina-pro-module-widget{
    opacity: 0.6; /* Makes it look disabled */
    pointer-events: none; /* Prevents interaction */
    user-select: none; /* Prevents text selection */
}

.graphina-pro-module::after {
    content: "Pro Feature";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
}

@media (max-width: 1650px) {
    .graphina-admin-charts-setting label {
        width: 25%;
    }
}

@media (max-width: 767px) {
    .col-06 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .graphina-admin-charts-setting {
        flex-direction: column;
        align-items: start;
    }
    .graphina-admin-charts-setting label {
        width: 100%;
    }
}

.graphina-d-none {
    display: none;
}



/* Disable Thousand Separator field */
.thousand-separator-field,
input[name="thousand_separator"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #f0f0f0;
  border-color: #ddd;
}

.thousand-separator-field{
    position: relative;
}

/* Add a disabled label/tag */
.thousand-separator-field::after,
input[name="thousand_separator"]::after {
    content: "Deprecated";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff5252;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    left: 50%;;
}

/* Style for the notice message */
.thousand-separator-notice {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 8px 12px;
  margin: 5px 0 15px 0;
  border-radius: 4px;
  font-size: 13px;
  display: block;
}








