html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
    font-weight: 600;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Custom styles */
.card {
    border-radius: 8px;
}

.badge {
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.card {
    transition: transform 0.2s;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-des {
    flex: 1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.text-truncate {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    outline: none !important;
    box-shadow: none !important;
}

input:focus,
button:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #0a498c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dx-lookup-arrow {
    transform: rotate(90deg); 
}

.advertiser-link {
    cursor: pointer;
    text-decoration: none;
}

.advertiser-link:hover {
    text-decoration: underline;
}

.see-ad-btn {
    background-color: #e5ecff;
    color: #050505;
    padding: 5px;
    border-radius: 0px 0px 6px 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.see-ad-btn:hover {
    background-color: #cedcff;
    text-decoration: none;
    color: #050505;
}

.media-container {
    position: relative;
    display: block;
}

.media-container img,
.media-container video {
    display: block;
    width: 100%;
    border-radius: 0.25rem; 
}

.media-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2); 
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.25rem;
}

.media-container:hover .overlay {
    opacity: 1;
}

.btn:focus,
.btn:active:focus {
    box-shadow: none !important;
    outline: none !important;
}

.overlay {
    pointer-events: none;
}

.badge-inactive {
    background-color: #fd00001a;
    color: #ff0000;
    border: 1px solid red;
}

.badge-active {
    background-color: #0080001a;
    color: #008000;
    border: 1px solid #008000;
}

.badge-unknown {
    background-color: #6c757d1a;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.rotate-45 {
    display: inline-block;
    transform: rotate(310deg);
}

.bg-amazon {
    background-color: #ff9900bf;
    color: #000;
    border: 1px solid #ed8f02;
}

.bg-tiktok {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
    color: #fff;
}

.bg-meta {
    background-color: #84bfff8f;
    color: #0273ED;
    border: 1px solid #0273ED;
}

.bg-google {
    background-color: #4285F4;
    color: #fff;
    border: 1px solid #0273ED;
}

.bg-microsoft {
    background: linear-gradient(45deg, #F25022, #FFB901);
    color: #ffffff;
    border: 1px solid #f25022;
}