/* Custom CSS for Theme Changes */


:root {
    --pc-them-gray: #EEEEEE;
    --pc-them-pink: #DDAED3;
    --pc-them-light-blue: #6594B1;
    --pc-theme-blue: #213C51;

    /* Dynamic Theme Colors */
    --pc-theme-primary: #213C51;
    --pc-theme-primary-rgb: 33, 60, 81;
}


.pc-header .pc-h-item {
    min-height: 60px;
}

.pc-container {
    top: 60px;
}

.form-control,
.ts-control {
    border-radius: 10px;
    padding: .5rem 1rem;
}

.plugin-clear_button.form-select .clear-button,
.plugin-clear_button.single .clear-button {
    right: max(1rem, .75rem);
}

.plugin-clear_button .clear-button {
    top: 40%;
    font-size: 20px;
}

.form-control.error,
.form-select.error {
    border-color: #dc2626;
    border-style: dashed;
}

select.form-control[readonly],
.form-control[readonly] {
    opacity: 0.6;
    background: #f5f5f7;
    border-color: #bdc7cf;
}


.ts-dropdown .option.selected,
.ts-dropdown .option.active {
    background-color: #d6d6d6 !important;
    color: #000000 !important;
}

/* .ts-wrapper.form-control.invalid,
.ts-wrapper.form-select.invalid {
    border-style: dashed;
    border-color: #db2627;
} */

/* jQuery Validation System Styling */
.form-control.is-invalid {
    border-style: dashed !important;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.invalid-feedback {
    margin-left: 5px;
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.1rem rgba(220, 38, 38, 0.25) !important;
}

.btn-theme-primary:hover,
.btn-theme-danger:hover,
.btn-theme-light:hover,
.btn-theme-info:hover,
.btn-theme-warning:hover,
.btn-theme-success:hover,
.btn-theme-primary:active,
.btn-theme-danger:active,
.btn-theme-light:active,
.btn-theme-info:active,
.btn-theme-warning:active,
.btn-theme-success:active {
    filter: brightness(0.9);
    /* Use brightness filter instead of changing background to prevent flicker */
    /* box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3) !important; */
    box-shadow: inset 0 3px 6px rgb(96 96 96 / 24%) !important;
}

.btn-theme-primary:active,
.btn-theme-danger:active,
.btn-theme-light:active,
.btn-theme-info:active,
.btn-theme-warning:active,
.btn-theme-success:active {
    transform: translateY(2px) !important;
}

.btn-theme-primary {
    background-color: var(--pc-them-light-blue) !important;
    /* Base color for transition */
    background: linear-gradient(145deg, var(--pc-them-light-blue), #1a1a1a) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(var(--pc-theme-primary-rgb), 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}


/* Danger Version (Red Gradient) */
.btn-theme-danger {
    background: linear-gradient(145deg, #dc2626, #8b0000) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}


/* Light Version (White/Gray Gradient) */
.btn-theme-light {
    background: linear-gradient(145deg, #ffffff, #e7e7e7) !important;
    color: #333333 !important;
    border: 1px solid #d1d1d1 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}


/* Info Version (Blue Gradient) */
.btn-theme-info {
    background: linear-gradient(145deg, #0dcaf0, #0aa2c0) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(13, 202, 240, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}


/* Warning Version (Orange/Yellow Gradient) */
.btn-theme-warning {
    background: linear-gradient(145deg, #ffc107, #e0a800) !important;
    color: #333333 !important;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}


/* Success Version (Green Gradient) */
.btn-theme-success {
    background: linear-gradient(145deg, #28a745, #1e7e34) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}


.btn-theme-primary,
.btn-theme-danger,
.btn-theme-light,
.btn-theme-info,
.btn-theme-warning,
.btn-theme-success {
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    padding: 6px 25px !important;
    font-weight: 500 !important;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    /* border: 1px solid rgba(0, 0, 0, 0.1) !important; */
}

.btn-theme-sm {
    border-radius: 10px !important;
    padding: 5px 15px !important;
}

.border-dashed {
    border-style: dashed !important;
}

.border-theme-info {
    border-color: #0dcaf0 !important;
}

.border-theme-primary {
    border-color: #4680ff !important;
}

.border-theme-warning {
    border-color: #ffc107 !important;
}

.border-theme-danger {
    border-color: #dc2626 !important;
}

.border-theme-success {
    border-color: #28a745 !important;
}

.no-input {
    background: transparent !important;
    border-color: transparent !important;
    opacity: 1 !important;
}


.custom-tom-select .ts-control {
    border-radius: 10px;
    padding: .5rem 1rem !important;
    color: #343a40;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

.ts-wrapper .ts-control {
    border-color: #e5e7eb;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom-width: 1px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.grid-secondry-td {
    background-color: #f9fafb;
}

/* Custom Action Button Group inside DataTables */
.btn-group-custom {
    display: inline-flex;
    border: 1px solid #888888;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-group-custom .btn-group-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

/* Dividing line between buttons */
.btn-group-custom .btn-group-item:not(:last-child) {
    border-right: 1px solid #888888;
}

/* Edit Button Hover State (Info blue) */
.btn-group-custom .btn-group-item.edit-btn:hover {
    background-color: #f0f9ff;
    /* soft sky blue background */
    color: #4680ff;
    /* primary template blue */
}

/* Delete Button Hover State (Danger red) */
.btn-group-custom .btn-group-item.delete-btn:hover {
    background-color: #fef2f2;
    /* soft red background */
    color: #dc2626;
    /* red */
}

/* WhatsApp Button Hover State (WhatsApp green) */
.btn-group-custom .btn-group-item.whatsapp-btn:hover {
    background-color: #f0fdf4;
    /* soft green background */
    color: #25d366;
    /* whatsapp green */
}

/* SVGs hover behavior inside button group */
.btn-group-custom .btn-group-item:hover svg {
    transform: scale(1.1);
}

.btn-group-custom .btn-group-item svg {
    transition: transform 0.2s ease;
}

.bg-light-danger {
    background-color: #fee2e2;
}

/* Sidebar Logo Sizing Override */
.b-brand img.logo-lg {
    max-width: 75px !important;
    height: auto !important;
}