/*!
  MAAN-NEWS v1.0.0
  Author: Maantheme

  Website: news.maantheme.com <http://news.maantheme.com>

   Copyright 2021 The Maantheme Authors


*/

.maantable thead th,
.maantable td {
    vertical-align: middle;
    text-align: center;
}
.maantable td {
    text-align: justify;
    text-align-last: center;
}
.maanaction {
    width: 10%;
}
#maanaction-in {
    padding-left: 35%;
    text-align: center;
}
#maanaction-in a {
    padding-right: 3px;
}
.archiveItem a {
    padding-left: 3px;
}
.maan-news-theme-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;

}

.maan-news-theme-items {
    margin: 0;
}
.maan-news-theme-items .theme-img {
    overflow: hidden;
    height: 350px;
}
.maan-news-theme-items .theme-img img {
    width: 100%;
    min-height: 350px;
}
.theme-discription-body {
    padding: 20px 15px;
}
.theme-discription-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}
.theme-discription-body p {
    margin-bottom: 5px;
}

.theme-discription-body .news-theme-btn {
    min-width: 120px;
    margin-top: 20px;
}
.active-btn {
    background: #00c857 !important;
    color: #fff !important;
}
.deactive-btn {
    background: #dc3545 !important;
    color: #fff !important;
}
.preview-image {
    height: 100px;
    width: 100px;
}
.list-image img {
    height: 100px;
    width: 150px;
}
.preview-image-rectangular {
    height: 120px;
    width: 400px;
}
.list-image-rectangular img {
    height: 120px;
    width: 420px;
}

.color-items {
    cursor: pointer;
}
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}
.colorbox-wrp {
    background: #fff;
    box-shadow: 0px 5px 50px rgba(47, 57, 82, 0.06);
    padding: 10px;
    margin: 0;
    display: block;
    text-align: center;
    border: 2px solid #fff;
    border-radius: 5px;
}
.color-box {
    height: 100px;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-transform: capitalize;
}
.color-items input:checked ~ .colorbox-wrp {
    border-color: #00c857;
}
.color-name {
    text-transform: capitalize;
}
.dropdown-item.theme-color {
    position: relative;
}
.dropdown-item.theme-color::after {
    position: absolute;
    content: "";
    display: block;
    right: 20px;
    top: 10px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

.dropdown-item.theme-color.active::after {
    border: 2px solid #fff;
}
.color-box.violet,
.dropdown-item.theme-color.violet::after,
.dropdown-item.theme-color.violet.active {
    background: #8000ef;
    color: #fff;
}
.color-box.brown,
.dropdown-item.theme-color.brown::after,
.dropdown-item.theme-color.brown.active {
    background: #b97654;
    color: #fff;
}
.color-box.blue,
.dropdown-item.theme-color.blue::after,
.dropdown-item.theme-color.blue.active {
    background: #0389ff;
    color: #fff;
}
.color-box.magenta,
.dropdown-item.theme-color.magenta::after,
.dropdown-item.theme-color.magenta.active {
    background: #ff00ff;
    color: #fff;
}
.color-box.green,
.dropdown-item.theme-color.green::after,
.dropdown-item.theme-color.green.active {
    background: #008000;
    color: #fff;
}
.color-box.orange,
.dropdown-item.theme-color.orange::after,
.dropdown-item.theme-color.orange.active {
    background: #ffa500;
    color: #fff;
}
.color-box.pink,
.dropdown-item.theme-color.pink::after,
.dropdown-item.theme-color.pink.active {
    background: #ffc0cb;
    color: #fff;
}
.color-box.dark,
.dropdown-item.theme-color.dark::after,
.dropdown-item.theme-color.dark.active {
    background: #101010;
    color: #fff;
}
.color-box.red,
.dropdown-item.theme-color.red::after,
.dropdown-item.theme-color.red.active {
    background: #ed1a3b;
    color: #fff;
}
.color-box.maroon,
.dropdown-item.theme-color.maroon::after,
.dropdown-item.theme-color.maroon.active {
    background: #800000;
    color: #fff;
}

.color-box.purple,
.dropdown-item.theme-color.purple::after,
.dropdown-item.theme-color.purple.active {
    background: #d8bfd8;
    color: #fff;
}
.color-box.black-white,
.dropdown-item.theme-color.black-white::after,
.dropdown-item.theme-color.black-white.active {
    background: #101010;
    color: #fff;
}

.color-box.rose,
.dropdown-item.theme-color.rose::after,
.dropdown-item.theme-color.rose.active {
    background: #ff5cad;
    color: #fff;
}
.pulse-animation {
    background: #ed1a3b;
    color: #fff;
    position: absolute;
    right: -15px;
    top: 5px;
    z-index: 99;
}
.new-added {
    position: relative;
}

.pulse-animation::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 30px;
    top: -3px;
    display: block;
    width: 5px;
    height: 5px;
    background: #ed1a3b;
    border-radius: 50%;
}

.pulse-animation::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 32px;
    top: -1px;
    display: block;
    width: 12px;
    height: 12px;
    background: #dd2843;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
    z-index: 1;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}
@media (max-width: 1600px) {
    .maan-news-theme-list-wrapper {
        gap: 30px;
    }
}
@media (max-width: 1199px) {
    .maan-news-theme-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .maan-news-theme-list-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

/* Styles pour les indicateurs de caractères */
.character-count {
    font-size: 12px;
    margin-top: 5px;
}

.character-count small {
    font-weight: 500;
}

.character-count span {
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Styles pour les indicateurs de champs requis */
.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Styles pour les messages d'aide */
.help-text {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
}

/* Styles pour les champs avec erreurs */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Styles pour les compteurs de caractères */
.character-count .text-success {
    color: #28a745 !important;
}

.character-count .text-warning {
    color: #ffc107 !important;
}

.character-count .text-danger {
    color: #dc3545 !important;
}

/* Styles pour les indicateurs de fichiers */
.file-info {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 12px;
}

/* Styles pour les messages d'erreur de validation */
.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Styles pour les indicateurs de statut */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-required {
    background-color: #dc3545;
}

.status-optional {
    background-color: #6c757d;
}

/* Amélioration de l'apparence des labels */
label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* Styles pour les tooltips d'aide */
.help-tooltip {
    cursor: help;
    color: #007bff;
    margin-left: 5px;
}

.help-tooltip:hover {
    color: #0056b3;
}

/* Styles pour les indicateurs de progression */
.progress-indicator {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.progress-bar.warning {
    background-color: #ffc107;
}

.progress-bar.danger {
    background-color: #dc3545;
}

/* Advertisement preview styles */
.ad-preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.ad-preview-image {
    max-width: 100px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ad-preview-image:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.ad-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 60px;
    border-radius: 4px;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

.ad-preview-placeholder i {
    font-size: 16px;
    margin-bottom: 2px;
}

.ad-preview-text {
    max-width: 100px;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Styles pour les aperçus des publicités dans le dashboard */
.ad-preview-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 5px 0;
}

.ad-preview-dashboard img {
    max-width: 60px;
    max-height: 40px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ad-preview-dashboard span {
    font-size: 9px;
    color: #6c757d;
}

/* Style pour la section news5 (publicités actives) */
.news5 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.news-count5 {
    color: white;
    font-weight: bold;
    margin: 0;
}

.news-title5 {
    color: white;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Styles pour le dashboard des statistiques */
.ad-preview-container {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ad-preview-container .row {
    margin: 0;
}

.ad-preview-container .col-3 {
    padding: 5px;
}

.ad-preview-container img {
    max-width: 80px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ad-preview-container img:hover {
    transform: scale(1.05);
}

.ad-preview-container span {
    font-size: 10px;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

/* Amélioration du tableau des statistiques */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

.table-striped tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}

/* Badges pour les statistiques */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}
