/* static/css/style.css */

/* ===== CSS VARIABLES ===== */
:root {
    --border-color: #bbbbbb;
    --border-color-dark: #717171;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
}

/* ===== CAMPAIGNS STYLES ===== */

.campaign_title {
    font-size: 18px;
    color: Black;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.campaigns-table td {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    color: #616161;
    line-height: 18px;
    vertical-align: middle;
    padding: 4px;
    border: 1px solid #666;
}



.campaigns-table .campaign-message {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    color: #3f3e3e;
}

.campaigns-table .categories-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 19px
}

.campaigns-table .networks-text {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    line-height: 18px
}


.campaigns-table th {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
    font-size: 12px;
}

/* Rotated text styling */
.campaigns-table .rotated-text {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: black;
}

/* Banner text styling */
.campaigns-table .banners-td {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    color: black;
    text-align: center;
}

/* Website text styling */
.campaigns-table .websites-td {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    color: black;
    line-height: 15px;
}

.campaigns-table .websites-td a {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    color: #23658d;
    text-decoration: none;
}

/* MediaShop text styling */
.campaigns-table .mediashop-td {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    color: black;
    text-align: center;
}

/* Campaign Header */
.campaign-header {
    background-color: #333;
    color: white;
    padding: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.campaign-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.campaign-header-title {
    font-size: 18px;
    font-weight: bold;
}

.period-filters {
    display: flex;
    gap: 5px;
}

.period-btn {
    padding: 5px 10px;
    background-color: #555;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.period-btn:hover {
    background-color: #666;
}

.period-btn.highlight {
    background-color: #d32f2f;
}

.status-filters {
    display: flex;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: white;
}

.sort-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 12px;
    color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Campaign Table */
.global-campaign-table-container {
    margin: 0;
    padding: 0;
}

.campaigns-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    font-family: 'Roboto', Arial, sans-serif;
}


.campaigns-table .advertiser-td {
    overflow: visible;
}

.campaign_header_tr {
    background-color: #333;
    color: white;
    height: 30px;
    font-size: 18px
}

.campaign_header_tr td {
    padding: 8px 4px;
    color: white !important;
}

.campaign-body-tr {
    background-color: white;
    height: 76px;
}

/* Removed hover effect to preserve row colors */

/* Rotated Text */
.rotated-text {
    width: 24px !important;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.rotated-content {
    display: inline-block;
    transform: rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.td_bernie {
    background-color: #1871d0 !important;
}

/* Campaign Elements */
.camp-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #3f3e3e;
    text-decoration: none;
}

.camp-title:hover {
    text-decoration: underline;
}

.categories-title {
    font-size: 12px;
    font-weight: bold;
}

.dateRangeTitle {
    font-size: 12px;
    font-weight: bold;
}

.dateRange {
    font-size: 12px;
}

.hand {
    cursor: pointer;
}

/* ===== END CAMPAIGNS STYLES ===== */

/* Wrapper για να προσθέσουμε το κενό */
.table-wrapper {
    padding-left: 20px;
    padding-right: 20px;
}

/* Μείωση padding στους πίνακες */
table td,
table th {
    padding: 4px !important;
    /* Μείωση padding */
    vertical-align: middle !important;
    /* Aligns content vertically to the middle */

}

/* Κάνουμε τους πίνακες να καλύπτουν το 100% του πλάτους */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    /* Μείωση του font-size */
}

.custom-bordered-table,
.custom-bordered-table th,
.custom-bordered-table td {
    border: 1px solid rgb(136, 136, 136) !important;
    /* Σκούρο περίγραμμα μόνο για αυτόν τον πίνακα */
    border-collapse: separate;
    border-spacing: 0;
}



/* Αφαίρεση του default container του Bootstrap */
.container,
.container-fluid {
    width: 100%;
    padding-left: 20px;
    /* Προσθήκη padding στο container */
    padding-right: 20px;
    /* Προσθήκη padding στο container */
    margin-left: 0;
    margin-right: 0;
}

a {
    color: #23658d;
}

.c {
    text-align: center;
}


/* Κάνουμε το ενεργό κουμπί bold */
.btn-active {
    font-weight: bold;
    opacity: 1;
}



/* Style for hover effects on rate buttons */
.rate-button-1 {
    background-color: rgb(184, 211, 184);
    color: white;
}

.rate-button-2 {
    background-color: rgb(226, 185, 185);
    color: white;
}

.rate-button-1:hover {
    background-color: rgb(47, 146, 47);
    color: white;
}

.rate-button-2:hover {
    background-color: rgb(182, 22, 22);
    color: white;
}

/* Specific active rates color-coded */
.active-rate-0 {
    background-color: #585858 !important;
    color: white !important;
    font-weight: bold !important;
    opacity: 1 !important;
    border: 2px solid #333 !important;
}

.active-rate-1 {
    background-color: #28a745 !important;
    color: white !important;
    font-weight: bold !important;
    opacity: 1 !important;
    border: 2px solid #1e7e34 !important;
}

.active-rate-2 {
    background-color: #dc3545 !important;
    color: white !important;
    font-weight: bold !important;
    opacity: 1 !important;
    border: 2px solid #bd2130 !important;
}

.rate-filter .btn-light {
    opacity: 0.4;
    border: 1px solid #ddd;
}

.rate-filter .btn-light.active-filter {
    opacity: 1 !important;
    border: 2px solid #000 !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

table tbody tr td.num {
    text-align: right;
    font-size: 16px;
    padding-right: 6px !important;
    vertical-align: middle;
    /* Aligns content vertically to the middle */
}



/* AUTOCOMPLETE */

.autocomplete-item {
    display: flex;
    align-items: center;
    /* Κεντράρει κάθετα το περιεχόμενο */
    padding: 5px;
    /* Προσθέτει padding για να μην είναι κολλημένα τα στοιχεία */
}

.ui-autocomplete {
    height: 440px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.autocomplete-logo {
    width: 90px;
    /* Μείωση του πλάτους */
    height: 44px;
    /* Μείωση του ύψους */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-right: 8px;
    /* Μικρότερο περιθώριο */
}

.autocomplete-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.autocomplete-details {
    flex: 1;
    text-align: left;
}

.autocomplete .url {
    font-size: 12px;
    /* Μείωση του μεγέθους της γραμματοσειράς */
    color: gray;
    margin-top: 0px
}

.autocomplete .title {
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: -3px;
    font-weight: bold;
}



.advertiser_row:hover {
    background-color: #d5eaf7;
}


.match_advertisers .advertiser_title {
    font-size: 20px;
    margin: 0px
}

.match_advertisers td {
    padding: 10px !important;
    vertical-align: top !important
}

.domain_match {
    background-color: Green;
    color: white;
    padding: 2px 4px;
    width: 120px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ------------------------ Google Advertiser Rating ------------------------ */
.rate_button {
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid #0a4518 !important;
    font-weight: bold;
    border-radius: 0 !important;
}

.red {
    background-color: #dc3545;
    /* Κόκκινο */
}

.red_light {
    background-color: #f3e1e3;
    color: black;
    border: 1px solid #d3aeb3 !important;
    color: #d8655b;
    font-weight: normal;
}

.green {
    background-color: #15702a;
    /* Πράσινο */
}

.green_light {
    background-color: #ddf1e2;
    color: black;
    border: 1px solid #a0b4a5 !important;
    color: cadetblue;
    font-weight: normal
}

/* Αχνό κουμπί όταν το rate είναι 0 */
.light {
    opacity: 0.6;
    border: none !important;
    color: black !important;
}



/* ------------------------ YouTube Unmatched Videos ------------------------ */

#video_container .video_title {
    font-size: 24px;
    margin: 0px;
    margin-bottom: 10px;
    line-height: 24px;
}

#video_container td {
    font-size: 16px;
    border: 1px solid #d3d3d3;
}



.yt_details td {
    padding: 6px 8px !important;
}

.yt_details {
    margin-bottom: 8px
}



.flag_icon {
    width: 52px;
    /* Adjust width and height based on your design */
    height: auto;
    margin-right: 10px;
}

.guid {
    font-size: 10px;
    cursor: pointer;
}

.guid:hover {
    color: red
}

.page_title {
    width: auto;
    font-size: 26px;
    padding: 5px;
    margin-bottom: 20px;
    background-color: #717f87;
    color: White;
    font-family: Arial
}

/* New Standard Title Bar Styles */
.app-title-bar {
    background: #ffffff;
    border: 1px solid #d1d5db;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px;
    padding: 0 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.title-bar-content {
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1e293b;
    flex-grow: 1;
    text-align: center;
}

.title-bar-side {
    width: 150px;
    /* Space reserved for future buttons */
}

/* ===== CAMPAIGN PAGE SPECIFIC STYLES ===== */

/* Category Modal Styles */
.category-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.category-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: fit-content;
    min-width: 840px;
    max-width: 98%;
    height: 90%;
    display: flex;
    flex-direction: column;
}

.category-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.category-modal-title {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.category-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.category-modal-close:hover {
    background-color: #f0f0f0;
}

.category-search-container {
    position: relative;
    flex: 1;
    margin: 0 20px;
}

.category-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.category-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.category-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.category-search-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.category-search-item:hover {
    background-color: #f8f9fa;
}

.category-search-item:last-child {
    border-bottom: none;
}

.category-search-path {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.category-modal-columns {
    display: flex;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    width: fit-content;
}

.category-column {
    width: 400px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.category-column:last-child {
    border-right: none;
    padding-right: 0;
}

.category-column-title {
    margin: 0 0 8px 0;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.category-column-content {
    flex: 1;
    overflow-y: auto;
}

.category-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 15px;
    padding: 2px 10px;
}

.category-item:hover {
    background-color: #e3f2fd;
}

.category-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.category-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.2;
}

.category-modal-footer {
    margin-top: 8px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.category-update-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* Campaign Content Styles - Campaign Page Only */
.campaign-page .campaign-link {
    color: #003366;
    text-decoration: none;
    word-break: break-all;
}

.campaign-page .campaign-link:hover {
    text-decoration: underline;
}

.campaign-page .same-target {
    background: #fff177;
    padding: 3px;
}

.campaign-page .campaign-row {
    cursor: pointer;
    position: relative;
}

/* Removed hover effect to preserve row colors */

.campaign-page .campaign-row.drag-over {
    background-color: #b2d0ed !important;
    z-index: 5000 !important;
    position: relative !important;
    outline: 3px solid #0066cc !important;
}

.campaign-page .advLogo {
    background: white;
    width: 100%;
    height: 100px;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

.campaign-page #campaign_layout_row {
    display: grid;
    grid-template-columns: 65% 35%;
    column-gap: 12px;
    align-items: start;
}

.campaign-page #campaign_info {
    min-width: 0;
}

@media (max-width: 1200px) {
    .campaign-page #campaign_layout_row {
        grid-template-columns: 1fr;
    }
}

.campaign-page .campaign_top_row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.campaign-page #top_left_column {
    flex: 0 0 270px;
    /* ~256 logo + padding */
}

.campaign-page #top_right_column {
    flex: 1 1 auto;
    /* γεμίζει όλο το υπόλοιπο */
    min-width: 0;
    /* για να μη σπρώχνουν μεγάλα links */
}

/* Campaign Websites Styles - Campaign Page Only */
.campaign-page .websites_section {
    margin-top: 10px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.campaign-page .websites_nav_container {
    display: block;
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.campaign-page .websites_container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: auto;
    scrollbar-color: #aac6e8 #f1f5f9;
    width: auto;
    max-width: 100%;
    height: 80px;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.campaign-page .websites_container::-webkit-scrollbar {
    height: 12px;
}

.campaign-page .websites_container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.campaign-page .websites_container::-webkit-scrollbar-thumb {
    background: #aac6e8;
    border-radius: 6px;
}

.campaign-page .websites_container::-webkit-scrollbar-thumb:hover {
    background: #8bb5e3;
}

.campaign-page .website_card {
    flex: 0 0 auto;
    width: 100px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.campaign-page .website_card:hover {
    border: 1px solid #18436e;
}

.campaign-page .website_logo_container {
    width: 100%;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.campaign-page .website_logo {
    max-width: 90px;
    max-height: 24px;
    object-fit: contain;
    display: block;
}

.campaign-page .website_dates {
    width: 100%;
    font-size: 11px;
    color: #212121;
    line-height: 1.3;
}

/* Campaign Modal Z-Index Override - Campaign Page Only */
.campaign-page div[id*="Modal"],
.campaign-page div[id*="modal"] {
    z-index: 999999 !important;
    position: fixed !important;
}

.campaign-page button,
.campaign-page .button,
.campaign-page input[type="button"] {
    z-index: auto !important;
    position: relative !important;
}

.campaign-page .campaign-row div,
.campaign-page .banner-item div,
.campaign-page div[style*="z-index: 10"],
.campaign-page div[style*="z-index: 1;"] {
    z-index: auto !important;
}

.campaign-page div[id*="Modal"]>div,
.campaign-page div[id*="modal"]>div {
    z-index: 1000000 !important;
    position: relative !important;
}

/* ===== BANNER DROPDOWN MENU STYLES ===== */
.banner-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    min-width: 80px;
}

.banner-dropdown-option {
    padding: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #eee;
    background-color: white;
    text-align: left;
}

.banner-dropdown-option:hover {
    background-color: #dbdbdb !important;
}

.banner-dropdown-option:last-child {
    border-bottom: none;
}

.banner-dropdown-option.remove {
    color: #dc3545;
}

/* ===== BANNER WEBSITES STYLES ===== */
.website-item {
    display: inline-block;
    border: 1px solid #bbbbbb;
    padding: 3px 5px;
    font-size: 14px;
}

.website-item.ranking-high {
    font-weight: bold;
}

.website-item.adtype-1 {
    background-color: white;
}

.website-item.adtype-2 {
    background-color: #c4c4c4;
}

.website-item.adtype-9 {
    background-color: rgb(221, 247, 247);
}

.website-item.adtype-4 {
    background-color: #444;
    color: #a0a0a0;
}

.website-item.adtype-5 {
    background-color: #707070;
    color: #dbdbdb;
}

.affiliate-badge {
    display: inline-block;
    background-color: #0056b3;
    /* Μπλε */
    color: white;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
    margin-right: 2px;
}

.website-item a {
    text-decoration: none;
    color: inherit;
}

.website-item .screenshotButton {
    display: inline-block;
    margin-left: 4px;
    margin-right: 0px;
}

.headerCell {
    background-color: #ebedee !important;
    font-size: 15px !important;
}

/* ===== BANNER SYSTEM TABLES ===== */
.bannerTable {
    width: 100%;
    margin-bottom: 20px;
    background-color: white;
    font-size: 14px;
    border-collapse: collapse;
}

.bannerTable td {
    padding: 5px 10px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* ===== GLOBAL TITLE BAR ===== */
.app-title-bar-container {
    background-color: #e5e5e5;
    border-bottom: 1px solid #bbbbbb;
    padding: 5px 0;
    margin: 0;
    margin-bottom: 20px;
}

.app-title-bar-container .container-fluid {
    justify-content: space-between !important;
}

/* For pages with header_actions next to title (e.g. generic banners_check, campaigns) */
.app-title-bar-compact .container-fluid {
    justify-content: flex-start !important;
}

.app-title-bar-actions {
    margin-left: 20px;
}

.calendar_date {
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 0 !important;
    border: 1px solid #828282;
    padding: 2px 10px;
    width: auto;
    flex: 1;
    min-width: 130px;
    max-width: 150px;
    vertical-align: middle;
}

.cms-select {
    height: 32px;
    font-size: 14px;
    border: 1px solid #828282;
    padding: 0 5px;
    border-radius: 0;
    vertical-align: middle;
    background-color: #fff;
}

.cms-btn {
    height: 32px;
    padding: 0 20px;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    vertical-align: middle;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cms-btn:hover {
    background-color: #000;
    color: #fff;
}

.app-title-bar-title {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 0;
    text-align: left;
}

.app-section-header {
    background-color: #f1f1f1;
    border-bottom: 1px solid #bbbbbb;
    padding: 8px 15px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

/* ===== WEBSITE PLACEMENTS STYLES ===== */
.placements-main-container {
    max-width: 2200px;
    margin: 0 auto;
    padding-top: 20px;
}

.placements-search-input {
    width: 450px;
    border-radius: 0;
}

.placements-btn-square {
    border-radius: 0;
}

.placements-table-container {
    padding: 0 10px;
}

.placements-column-active {
    width: 76px;
}

.placements-column-website {
    width: 220px;
}

.placements-column-sync {
    width: 40px;
}

.placements-column-url-status {
    width: 1000px;
}

.placements-column-date {
    width: 120px;
}

.placements-column-lastvisit {
    width: 120px;
}

.placements-lastvisit-text {
    text-align: center;
}

.placements-column-robot {
    width: 100px;
}

.placements-column-hits {
    width: 80px;
}

.placements-column-preroll {
    width: 40px;
}

.placements-column-guid {
    width: 280px;
}

.placements-table {
    border: 1px solid #666 !important;
    width: 100%;
    background-color: white;
    font-family: 'Roboto', Arial, sans-serif;
}

.placements-table thead tr {
    background-color: #f2f2f2;
}

.placements-table th,
.placements-table td {
    border: 1px solid #666 !important;
    vertical-align: middle !important;
    font-family: 'Roboto', sans-serif;
}

.placements-table th {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    padding: 4px !important;
}

.placements-table td {
    font-size: 13px;
    padding: 4px !important;
}

.placements-rate-btn {
    width: 32px;
    height: 30px;
    padding: 0;
    border: 1px solid #0a4518 !important;
    font-weight: bold;
    cursor: pointer;
    color: white;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placements-rate-btn.green {
    background-color: #15702a !important;
}

.placements-rate-btn.red {
    background-color: #dc3545 !important;
}

.placements-status-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-color: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.placements-website-link {
    color: #23658d;
    font-size: 16px;
    font-weight: bold;
}

.placements-zone-custom {
    font-weight: bold;
    font-size: 16px;
    color: #23658d;
}

.placements-zone-home {
    font-size: 16px;
    color: #23658d;
}

.placements-zone-title {
    font-size: 12px;
}



.placements-url-display {
    font-size: 16px;
    margin-bottom: 5px;
    word-break: break-all;
    font-weight: bold;
}

.placements-url-link {
    color: #23658d;
}

.placements-url-display a:hover {
    text-decoration: underline !important;
}

.placements-url-edit {
    display: none;
}

.placements-url-input {
    width: 100%;
    font-size: 13px;
    font-family: inherit;
    min-height: 60px;
}

.status-code-container {
    margin-top: -4px;
}

.placements-status-code {
    font-size: 14px;
}

.placements-status-null {
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.placements-date-text {
    font-size: 14px;
    color: #000;
    display: block;
    text-align: center;
}

.placements-parsed-container {
    font-size: 13px;
    color: #333;
    margin-top: 6px;
    font-weight: 500;
}

.placements-parsed-icon {
    font-size: 12px;
    margin-right: 4px;
    color: #23658d;
}

.placements-preroll-icon {
    color: blue;
    font-size: 14px;
}

.placements-guid-text {
    font-family: Arial;
    font-size: 11px;
    color: #0f3c6c;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.placements-guid-text:hover {
    background-color: #f0f0f0;
}

.target-domain-text {
    font-size: 15px;
}

/* House Icon Toggle Styles */
.house-icon-toggle {
    margin-left: 8px;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 16px;
}

.house-icon-toggle:hover {
    color: #2c3e50;
}

.house-icon-toggle.is-house {
    color: #27ae60 !important;
}

.house-icon-toggle.is-house:hover {
    color: #219150 !important;
}

.guid-flash {
    background-color: #b7d7f7 !important;
}

.placements-table td.status-cell {
    position: relative;
    padding-right: 30px !important;
}

.editable-url-cell {
    cursor: pointer;
}

.editable-url-cell:hover {
    background-color: #f9f9f9;
}

/* ===== BANNER QUICK SEARCH INLINE (Title Bar) ===== */
.banner-quick-search-inline .qs-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

.banner-quick-search-inline .search-form-item {
    margin-right: 15px;
}

.banner-quick-search-inline input {
    font-size: 14px;
    height: 36px;
    border: 1px solid #828282;
    padding: 0 12px;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    transition: all 0.2s;
}

#qs_universal {
    width: 650px;
}

.banner-quick-search-inline input:focus {
    border-color: #3498db;
    outline: 0;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.banner-quick-search-inline input:focus::placeholder {
    color: transparent;
}

/* ===== NAVBAR & FLAGS ===== */
.flag_icon {
    height: 32px;
    width: 46px;
    object-fit: cover;
    vertical-align: middle;
    cursor: pointer;
    border: none !important;
}

.dropdown-flag {
    height: 22px;
    width: 33px;
    object-fit: cover;
    vertical-align: middle;
    border: none !important;
    margin-right: 10px;
}

#kb_link i {
    font-size: 24px !important;
}

#countryDropdown.dropdown-toggle::after {
    display: none !important;
}

.flag-container .dropdown-menu {
    min-width: 190px !important;
    padding: 10px 0 !important;
}

.flag-container .dropdown-item {
    padding: 10px 20px !important;
}

.navbar-nav .dropdown-item {
    transition: background-color 0.2s;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.flag-container {
    margin-right: 15px;
    /* Adjust this to move flag left relative to logout */
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    background-color: #ffe0e0;
    border: 1px solid #cc0000;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 15px 25px;
    margin: 40px auto;
    max-width: 800px;
}

.success-message {
    background-color: #e0ffe0;
    border: 1px solid #00cc00;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 15px 25px;
    margin: 40px auto;
    max-width: 800px;
}