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


.kc-us-items-lists-groups #created_at, .kc-us-items-lists-groups .column-created_at {
    margin-right: 10px;
}

.kc-us-items-lists-groups #clicks, .kc-us-items-lists-groups #links {
    width: 20%;
}

/* Frappe Chart CSS */


/* Remove background horizontal lines from chart also remove label from X-axis */
.frappe-chart .x.axis .line-vertical,
.frappe-chart .x.axis text {
    display: none;
}


/* Progress Bar - Start */
.meter {
    height: 30px;
    position: relative;
    background: #f3efe6;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
}

.progress {
    background-color: #5850ec;
    animation: progressBar 3s ease-in-out;
    animation-fill-mode: both;
    color: #FFEBE8;
}

@keyframes progressBar {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Progress Bar - End */

/* QR Code */
.kc-us-qr-code .qr {
    margin-left: auto;
    margin-right: auto;
    font-size: 1px;
    width: 50%;
}

/* Align search box with bulk action */

.tablenav {
    padding-top: 0px !important;
    clear: none !important;
}


.kc-us-mail-toggle-dot{
    margin-top: 0.19rem !important;
    width: 0.85rem !important;
    height: 0.8rem !important;
}
.kc-us-mail-toggle-line{
    height: 1.2rem !important;
}


/* Social Share */

.social .fbtn {
    width: 50px;
    display: inline-block;
    color: #fff;
    text-align: center;
    line-height:18px;
    float: left;
}
.social .fa {
    padding:15px 0px;
}

.facebook {
    background-color: #3b5998;
}

.gplus {
    background-color: #dd4b39;
}

.twitter {
    background-color: #55acee;
}

.stumbleupon {
    background-color: #eb4924;
}

.pinterest {
    background-color: #cc2127;
}

.linkedin {
    background-color: #0077b5;
}

.buffer {
    background-color: #323b43;
}

.whatsapp {
    background-color: #25D366;
}

.pinterest {
    background-color: #c8232c;
}

.telegram {
    background-color: #0088cc;
}

.vkontakte {
    background-color: #4c75a3;
}

.hackernews {
    background-color: #ff6600;
}

.tumblr {
    background-color: #34465d;
}

.line {
    background-color: #00c300;
}

.email, .svg_qrcode {
    background-color: #787878;
}

.qrcode {
    background-color: #000000;
}

.share-button.sharer {
    height: 20px;
}

.share-button.sharer .social.active.top {
    transform: scale(1) translateY(-10px);
}

.share-button.sharer .social.active.bottom {
    transform: scale(1) translateY(10px);
}

.share-button.sharer .social.active {
    opacity: 1;
    transition: all 0.4s ease 0s;
    visibility: visible;
}
.share-button.sharer .social.networks-5 {

}
.share-button.sharer .social.top {
    margin-top: -80px;
    transform-origin: 0 0 0;
}
.share-button.sharer .social {
    margin-left: -200px;
    opacity: 0;
    transition: all 0.4s ease 0s;
    visibility: hidden;
}

.us-social {
    display: none;
}

.column-title {
    width: 20%;
}

p.search-box, .search-box #form-search-input, .search-box #search-submit {
    margin: 0;
}

/** Tooltip Custom CSS - START */
.kc-us-tooltip:hover .kc-us-tooltip-text {
    visibility: visible;
}

.kc-us-tooltip .kc-us-tooltip-text  {
    bottom: 25px;
    transform: translate(-50%,0%);
    left: 50%;
    opacity: 0.9;
}

.kc-us-tooltip .kc-us-tooltip-text svg  {
    left: 50%;
    transform: translate(-50%, 0px);
}

.bulkactions input.kc-us-date-picker {
    line-height: 1;
}
/** Tooltip Custom CSS - END */

/* Activity Log Filters - Start */
.logify-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.logify-filters select,
.logify-filters input[type="date"] {
    height: 32px;
    line-height: 1;
    font-size: 13px;
}

.logify-filters select {
    min-width: 150px;
    max-width: 250px;
}

.logify-filters input[type="date"] {
    width: 150px;
    padding: 0 6px;
}

.logify-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logify-filter-reset {
    color: #b32d2e;
    text-decoration: none;
    font-size: 13px;
}

.logify-filter-reset:hover {
    color: #a00;
    text-decoration: underline;
}

p.search-box {
    float: right;
}

p.search-box input[type="search"] {
    width: 280px;
}
/* Activity Log Filters - End */

/* Log Detail Modal - Start */
.logify-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logify-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 800px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
.logify-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logify-modal-header-left h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.logify-modal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logify-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.logify-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Action Buttons */
.logify-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 4px;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.logify-btn:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.logify-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.4);
}

.logify-btn-copied {
    background: #46b450 !important;
    border-color: #46b450 !important;
    transition: all 0.2s ease;
}

/* Modal Body & Grid */
.logify-modal-body {
    padding: 24px;
    background: #f0f0f1;
}

.logify-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Section Cards */
.logify-section-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dcdcde;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.logify-section-full {
    grid-column: 1 / -1;
}

.logify-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dcdcde;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #50575e;
}

.logify-section-title .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #2271b1;
}

.logify-section-body {
    padding: 4px 0;
}

/* Detail Rows */
.logify-detail-row {
    display: flex;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
    line-height: 1.5;
}

.logify-detail-row:last-child {
    border-bottom: none;
}

.logify-detail-label {
    min-width: 120px;
    max-width: 120px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #787c82;
    padding-top: 1px;
}

.logify-detail-value {
    flex: 1;
    color: #1d2327;
    word-break: break-word;
}

.logify-detail-value a {
    color: #2271b1;
    text-decoration: none;
}

.logify-detail-value a:hover {
    color: #135e96;
    text-decoration: underline;
}

.logify-detail-role {
    display: inline-block;
    background: #f0f0f1;
    color: #50575e;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Context / Metadata Table */
.logify-context-table {
    width: 100%;
    border-collapse: collapse;
}

.logify-context-table thead th {
    padding: 8px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #787c82;
    background: #f8f9fa;
    border-bottom: 1px solid #dcdcde;
}

.logify-context-table tbody td {
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #1d2327;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
    word-break: break-word;
}

.logify-context-table tbody tr:last-child td {
    border-bottom: none;
}

.logify-context-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.logify-meta-pre {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.logify-no-context {
    color: #787c82;
    font-style: italic;
    margin: 0;
    padding: 16px;
}

/* Loading */
.logify-modal-loading {
    padding: 40px;
    text-align: center;
}

/* JSON Modal */
.logify-json-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logify-json-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.logify-json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 8px 8px 0 0;
}

.logify-json-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.logify-json-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.logify-json-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.logify-json-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.logify-json-pre {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 16px;
    margin: 0;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: #1d2327;
}

.logify-json-footer {
    padding: 12px 20px;
    border-top: 1px solid #dcdcde;
    text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
    .logify-modal-grid {
        grid-template-columns: 1fr;
    }

    .logify-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logify-modal-header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .logify-detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .logify-detail-label {
        min-width: auto;
        max-width: none;
    }
}
/* Log Detail Modal - End */

.wpsf-child-fields {
    margin-left: 20px;
    padding: 15px 0 0 15px;
    border-left: 2px solid #eee;
}

.wpsf-child-field {
    margin-bottom: 15px;
}

.wpsf-child-field__label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}