/* ********* tabs section ********* */
#pch-tabs-container .list-group-item .icon.submenu {
	margin-left: 20px;
}
#pch-tabs-container .list-group-item .icon {
	margin-right: 3px;
}
#pch-tabs-container .list-group-item {
	cursor: pointer;
}
#pch-tabs-container .list-group-item.has-sub.active,
#pch-tabs-container .list-group-item.active {
	color: white;
}
#pch-tabs-container .panel-collapse .list-group-item.active {
	background-color: #d0e9f2;
    border-color: #d0e9f2;
    color: black;
}
#pch-tabs-container .panel-collapse .list-group-item {
	border-radius: 0;
}

#pch-tabs-container .tab-content-container > .t-content {
    display: none
}

#pch-tabs-container .tab-content-container > .t-content.active {
    display: block
}
#pch-tabs-container .question-tooltip {
	margin-left: 5px;
    color: #2eacce;
}


/* ********* welcome tab content ********* */
.welcome-champs-button {
    background-image: linear-gradient(to right, #187FE5 , #4FC1FA) !important;
    width: 200px;
    color: white !important;
    border-radius: 25px !important;
    border: none !important;
	margin-top: 20px;
    padding: 8px 12px !important;
    font-size: 17px !important;
    opacity: 0.8 !important;
}
.champs-button-rate {
    background-image: linear-gradient(to right, #E28C00 , #FFE600) !important;
}
.champs-button-contact-support {
    background-image: linear-gradient(to right, #3B29CB , #8257E7) !important;
}
.champs-button-documentation {
    background-image: linear-gradient(to right, #D40F5D , #FF7871) !important;
}
.welcome-champs-button:hover {
    opacity: 1 !important;
}
.welcome-champs-button:focus {
    outline:  none !important;
}
.welcome-champs-button i {
    color:white !important;
    float:left !important;
    font-size: 25px !important;
}
.documentation-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 100%;
    text-align: center;
    width: 150px;
    z-index: 99;
    display: none;
	
	border-radius: .4em;
    border:2px solid #721539;
	background-color: #ac4844;
    background-image: linear-gradient(to bottom, #ac4844 , #721539);
}
.documentation-dropdown:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #76193a transparent transparent transparent;
}
.documentation-dropdown .lang {
    display: block;
    font-size: 15px;
	color: white;
}
.documentation-dropdown .lang + .lang {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.documentation-dropdown .lang:hover {
    color:white;
    background-color:#FF7871 !important;
}
.custom-text-container {
    font-size: 15px !important;
    text-align: justify;
    max-width: 90%;
    line-height: 25px !important;
    margin: 20px auto 15px;
}


footer .h_blocklinktitle {
    font-size: 18px;
    line-height: initial;
    font-weight: 400;
    background: transparent;
    outline: none;
    border: none;
    border-bottom: 1px solid #444;
    padding-right: 25px;
}

/* ********* configuration tab content ********* */
#pch-tabs-container .form-group .html-title h3 {
    margin: 10px 0;
}
#pch-tabs-container .form-group .switch.bold-description + p {
	font-weight: 600;
	color: #555;
    font-size: 11px;
	font-style: normal;
}

/* ********* regenerate tab content ********* */
.regeneration-table {
	margin-bottom: 35px;
}
.regeneration-table .regenerate-actions {
	min-width: 130px;
}
.regeneration-table .regenerate-progress {
	width: 15%;
	text-align: right;
}
.regeneration-table .regenerate-progress-percentage {
	width: 35%;
	text-align: center;
}
.regeneration-table tbody tr:last-child td {
	border-bottom: none;
}
.regeneration-table .regenerate-progress-percentage .progress {
	margin-bottom: 0;
}
.regeneration-table tfoot td {
	background-color: #eeeeee;
}
.regeneration-table .image-actions .btn:disabled,
.regeneration-table .image-actions .btn[disabled] {
	background-color: #dddddd;
	border-color: #dedede;
}
.regeneration-table .image-actions .btn + .btn {
	margin-left: 5px;
}
.regeneration-table .image-actions .btn.img-load-other-imgs {
	background-color: #e9fae8;
}
.regeneration-table .image-actions .btn.img-load-other-imgs:hover {
    background-color: #00aff0;
}
.regeneration-table .progress-bar[aria-valuenow="100.00"] {
	background-color: #439a4a;
}
.regeneration-table td.image-actions {
	position: relative;
}
.regeneration-table td.image-actions .alert-loading {
	margin: 0;
    position: absolute;
    left: 7px;
    z-index: 2;
    padding: 7px 7px 7px 30px;
}
.regeneration-table td.image-actions .alert-loading:before {
	height: 18px;
    width: 18px;
	left: 6px;
    font-size: 20px;
}

/* ********* Statistics Dashboard ********* */
.webp-statistics-dashboard .stats-summary-cards {
    margin: 20px 0 30px 0;
}

.webp-statistics-dashboard .stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.webp-statistics-dashboard .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.webp-statistics-dashboard .stats-card-original {
    border-left-color: #6c757d;
}

.webp-statistics-dashboard .stats-card-webp {
    border-left-color: #28a745;
}

.webp-statistics-dashboard .stats-card-avif {
    border-left-color: #17a2b8;
}

.webp-statistics-dashboard .stats-card-savings {
    border-left-color: #ffc107;
}

.webp-statistics-dashboard .stats-icon {
    font-size: 40px;
    margin-right: 15px;
    opacity: 0.7;
}

.webp-statistics-dashboard .stats-card-original .stats-icon {
    color: #6c757d;
}

.webp-statistics-dashboard .stats-card-webp .stats-icon {
    color: #28a745;
}

.webp-statistics-dashboard .stats-card-avif .stats-icon {
    color: #17a2b8;
}

.webp-statistics-dashboard .stats-card-savings .stats-icon {
    color: #ffc107;
}

.webp-statistics-dashboard .stats-content {
    flex: 1;
}

.webp-statistics-dashboard .stats-value {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    color: #333;
}

.webp-statistics-dashboard .stats-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webp-statistics-dashboard .stats-detail {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.webp-statistics-dashboard .stats-coverage-section {
    margin-bottom: 20px;
}

.webp-statistics-dashboard .stats-coverage-section .progress {
    height: 25px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.webp-statistics-dashboard .stats-coverage-section .progress-bar {
    line-height: 25px;
    font-size: 13px;
    font-weight: bold;
}

.webp-statistics-dashboard .stats-coverage-detail {
    font-size: 13px;
    color: #666;
}

.webp-statistics-dashboard .stats-coverage-detail .badge {
    margin-left: 10px;
}

.webp-statistics-dashboard #stats-category-table th {
    background-color: #f8f9fa;
    font-size: 12px;
    text-transform: uppercase;
}

.webp-statistics-dashboard #stats-category-table td {
    vertical-align: middle;
}

.webp-statistics-dashboard #stats-category-table .label {
    margin-right: 3px;
}

.webp-statistics-dashboard .panel-heading {
    font-weight: 600;
}

.webp-statistics-dashboard #refresh-stats {
    margin-bottom: 15px;
}

.webp-statistics-dashboard #stats-last-updated {
    font-size: 11px;
    background-color: #e9ecef;
    color: #666;
}

/* ********* Image Comparison Tool ********* */
.webp-comparison-tool .comparison-filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.webp-comparison-tool .comparison-grid-container {
    min-height: 300px;
}

.webp-comparison-tool .comparison-grid {
    margin: 0 -5px;
}

.webp-comparison-tool .comparison-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.webp-comparison-tool .comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.webp-comparison-tool .comparison-card.status-both {
    border-color: #28a745;
}

.webp-comparison-tool .comparison-card.status-partial {
    border-color: #ffc107;
}

.webp-comparison-tool .comparison-card.status-none {
    border-color: #dc3545;
}

.webp-comparison-tool .comparison-card-image {
    position: relative;
    height: 120px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.webp-comparison-tool .comparison-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webp-comparison-tool .comparison-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.webp-comparison-tool .comparison-card:hover .comparison-card-overlay {
    opacity: 1;
}

.webp-comparison-tool .comparison-card-overlay i {
    color: white;
    font-size: 24px;
}

.webp-comparison-tool .comparison-card-info {
    padding: 10px;
}

.webp-comparison-tool .comparison-card-name {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.webp-comparison-tool .comparison-card-sizes {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.webp-comparison-tool .comparison-card-sizes .size-original {
    color: #666;
}

.webp-comparison-tool .comparison-card-sizes .size-webp {
    color: #28a745;
}

.webp-comparison-tool .comparison-card-sizes .size-avif {
    color: #17a2b8;
}

.webp-comparison-tool .comparison-card-sizes .size-missing {
    color: #dc3545;
}

.webp-comparison-tool .comparison-loading,
.webp-comparison-tool .comparison-empty {
    padding: 50px 20px;
    color: #999;
}

.webp-comparison-tool .comparison-loading i,
.webp-comparison-tool .comparison-empty i {
    margin-bottom: 15px;
    color: #ccc;
}

.webp-comparison-tool .comparison-pagination {
    margin-top: 20px;
}

.webp-comparison-tool .comparison-pagination .pagination {
    margin: 10px 0;
}

/* Comparison Modal Styles */
#comparison-modal .modal-dialog {
    max-width: 900px;
}

#comparison-modal .comparison-format-tabs {
    margin-bottom: 15px;
}

#comparison-modal .comparison-format-tabs .badge {
    margin-left: 5px;
}

#comparison-modal .comparison-tab-content {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-top: none;
    padding: 15px;
    min-height: 300px;
}

#comparison-modal .comparison-image-container {
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#comparison-modal .comparison-image-container img {
    max-width: 100%;
    max-height: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#comparison-modal .comparison-not-available {
    color: #999;
    text-align: center;
    padding: 50px;
}

#comparison-modal .comparison-not-available i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

#comparison-modal .comparison-details {
    margin-top: 20px;
}

#comparison-modal .comparison-details table {
    margin-bottom: 10px;
}

#comparison-modal .tab-pane {
    display: none;
}

#comparison-modal .tab-pane.active {
    display: block;
}

/* ********* Orphan Cleanup Tool ********* */
.webp-orphan-cleanup .orphan-scanning,
.webp-orphan-cleanup .orphan-deleting {
    padding: 50px 20px;
    text-align: center;
    color: #666;
}

.webp-orphan-cleanup .orphan-scanning i,
.webp-orphan-cleanup .orphan-deleting i {
    color: #17a2b8;
    margin-bottom: 15px;
}

.webp-orphan-cleanup .orphan-summary-cards {
    margin: 20px 0;
}

.webp-orphan-cleanup .orphan-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
}

.webp-orphan-cleanup .orphan-card-webp {
    border-left-color: #28a745;
}

.webp-orphan-cleanup .orphan-card-avif {
    border-left-color: #17a2b8;
}

.webp-orphan-cleanup .orphan-card-total {
    border-left-color: #dc3545;
}

.webp-orphan-cleanup .orphan-card-icon {
    font-size: 40px;
    margin-right: 15px;
    opacity: 0.7;
}

.webp-orphan-cleanup .orphan-card-webp .orphan-card-icon {
    color: #28a745;
}

.webp-orphan-cleanup .orphan-card-avif .orphan-card-icon {
    color: #17a2b8;
}

.webp-orphan-cleanup .orphan-card-total .orphan-card-icon {
    color: #dc3545;
}

.webp-orphan-cleanup .orphan-card-content {
    flex: 1;
}

.webp-orphan-cleanup .orphan-card-value {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
    color: #333;
}

.webp-orphan-cleanup .orphan-card-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webp-orphan-cleanup .orphan-card-detail {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.webp-orphan-cleanup .orphan-actions {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.webp-orphan-cleanup .orphan-actions .btn {
    margin: 5px;
}

.webp-orphan-cleanup .orphan-none {
    padding: 30px;
}

.webp-orphan-cleanup .orphan-none i {
    color: #28a745;
    margin-bottom: 15px;
}

.webp-orphan-cleanup .orphan-file-list-container {
    font-size: 12px;
}

.webp-orphan-cleanup #orphan-category-table th {
    background-color: #f8f9fa;
    font-size: 12px;
    text-transform: uppercase;
}

.webp-orphan-cleanup #orphan-category-table td {
    vertical-align: middle;
}

/* ********* CDN Configuration ********* */
.webp-cdn-config .panel {
    margin-bottom: 20px;
}

.webp-cdn-config .form-horizontal .control-label {
    font-weight: 600;
}

.webp-cdn-config hr {
    margin: 25px 0;
    border-color: #e5e5e5;
}

.webp-cdn-config h4 {
    margin: 20px 0 15px;
    color: #333;
    font-size: 14px;
}

.webp-cdn-config h4 i {
    margin-right: 8px;
    color: #666;
}

.webp-cdn-config .config-code {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    margin: 10px 0;
    white-space: pre;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

.webp-cdn-config .config-actions {
    margin-bottom: 10px;
    text-align: right;
}

.webp-cdn-config .config-actions .btn {
    margin-left: 5px;
}

.webp-cdn-config .tab-content {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
}

.webp-cdn-config .nav-tabs > li > a {
    font-weight: 500;
}

.webp-cdn-config .nav-tabs > li > a i {
    margin-right: 5px;
}

.webp-cdn-config .recommendation-steps {
    padding-left: 20px;
    margin: 15px 0;
}

.webp-cdn-config .recommendation-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.webp-cdn-config #cdn-recommendations-panel h4 {
    margin-top: 0;
    color: #25547b;
    font-weight: 600;
}

.webp-cdn-config .provider-description {
    color: #666;
    font-style: italic;
}

#cdn-test-modal .table th {
    background-color: #f8f9fa;
    text-transform: capitalize;
}

#cdn-test-modal .table td {
    word-break: break-all;
}

#cdn-test-modal .alert i {
    margin-right: 8px;
}

/* ********* Nginx Configuration Generator ********* */
.webp-nginx-config .server-type-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.webp-nginx-config .server-type-card.active {
    border-color: #25b9d7;
    background-color: #f0fbfd;
}

.webp-nginx-config .server-type-card i {
    font-size: 36px;
    color: #666;
    margin-bottom: 10px;
}

.webp-nginx-config .server-type-card.active i {
    color: #25b9d7;
}

.webp-nginx-config .server-type-card h4 {
    margin: 10px 0 5px;
    font-weight: 600;
}

.webp-nginx-config .server-type-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.webp-nginx-config hr {
    margin: 25px 0;
}

.webp-nginx-config h4 {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.webp-nginx-config h4 i {
    margin-right: 8px;
    color: #666;
}

.webp-nginx-config .config-code {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 500px;
    margin: 10px 0;
    white-space: pre;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

.webp-nginx-config .config-actions {
    margin-bottom: 10px;
    text-align: right;
}

.webp-nginx-config .config-actions .btn {
    margin-left: 5px;
}

.webp-nginx-config .tab-content {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
}

.webp-nginx-config .nav-tabs > li > a {
    font-weight: 500;
}

.webp-nginx-config .nav-tabs > li > a i {
    margin-right: 5px;
}

.webp-nginx-config .reference-list {
    padding-left: 20px;
    margin: 0;
}

.webp-nginx-config .reference-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.webp-nginx-config .command-list {
    margin: 0;
}

.webp-nginx-config .command-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.webp-nginx-config .command-item code {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 15px;
    white-space: nowrap;
}

.webp-nginx-config .command-item span {
    color: #666;
    font-size: 12px;
}

.webp-nginx-config .form-horizontal .control-label {
    font-weight: 500;
    font-size: 12px;
}

.webp-nginx-config .help-block {
    font-size: 11px;
    color: #999;
}