/*
 * Front End PM → Cartpauj PM Visual Override
 * Aplică stilul vizual Cartpauj PM peste structura Front End PM.
 * Adăugați acest CSS în: Appearance > Simple Custom CSS
 * sau ca fișier custom în tema activă.
 */

/* ============================================================
   WRAPPER
   ============================================================ */
#fep-wrapper {
    position: relative;
    margin: 0 0 24px;
    color: #333;
    font-family: Helvetica, Arial, Tahoma, sans-serif;
}

/* ============================================================
   HEADER
   ============================================================ */
#fep-header.fep-table {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 16px 20px;
    border: 1px solid #d9e3ea;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
    box-shadow: 0 10px 24px rgba(32, 74, 106, 0.08);
    width: auto;
}

#fep-header.fep-table > div {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    border: 0 !important;
    padding: 0 !important;
}

#fep-header.fep-table > div > div {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    white-space: normal !important;
}

#fep-header .fep-header-avatar {
    flex-shrink: 0;
}

#fep-header .avatar,
#fep-content .avatar,
#fep-header .fep-header-avatar img {
    width: 64px;
    height: 64px;
    border: 1px solid #d9e3ea;
    border-radius: 999px;
    background: #fff;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

#fep-header .fep-header-welcome strong {
    color: #0c5390;
    font-family: Georgia, Times, "Times New Roman", serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.2px;
    display: block;
    margin-bottom: 4px;
}

#fep-header .fep-header-welcome,
#fep-header .fep-header-unread-text,
#fep-header .fep-header-box-size {
    margin: 2px 0 0;
    color: #526679;
    font-size: 13px;
    line-height: 1.5;
}
}

/* ============================================================
   MENU / BUTOANE NAVIGARE
   ============================================================ */
#fep-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 0;
    width: auto;
}

#fep-menu .fep-button, 
.fep-button, 
.fep-button-active,
#fep-menu .fep-button:hover,
#fep-menu .fep-button:visited,
.fep-button:hover, 
.fep-button-active:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d5a261;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbf47 0%, #ea8b22 100%);
  box-shadow: 0 8px 16px rgba(199, 114, 24, 0.18);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  text-transform: uppercase;
  margin-right: 5px;
  margin-top: 0;
  cursor: pointer;
  margin-bottom: 10px;
}

.fep-button-active,
.fep-button-active:hover {
    background: linear-gradient(180deg, #4b8fbd 0%, #2f6288 100%);
    border-color: #27597c;
    box-shadow: 0 8px 16px rgba(36, 84, 119, 0.2);
}

#fep-menu-toggle-button {
    display: block;
    width: 100%;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid #f99734 !important;
    box-shadow: none !important;
    color: #0c5390 !important;
    font-family: Georgia, Times, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-align: left !important;
    text-transform: uppercase !important;
    padding: 0 0 8px 0 !important;
    margin: 0 0 16px 0 !important;
    cursor: pointer;
    border-radius: 0 !important;
}

#fep-menu-toggle-button:hover {
    color: #f99734 !important;
}

/* ============================================================
   NOTIFICĂRI (succese, erori, avertizări)
   ============================================================ */
.fep-error,
.fep-success,
.fep-wp-error,
#fep-notification-bar {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #f1d37a;
    border-radius: 12px;
    background: #fff8d6;
    color: #705200;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    width: auto;
}

.fep-success {
    border-color: #a3d977;
    background: #eef8e1;
    color: #3a5e0c;
}

.fep-error,
.fep-wp-error,
#fep-notification-bar {
    border-color: #e8a3a3;
    background: #fde8e8;
    color: #8c2626;
}

/* ============================================================
   CONTENT — zona principală
   ============================================================ */
#fep-content {
    margin: 0 0 16px;
    padding: 18px 20px;
    border: 1px solid #d9e3ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(32, 74, 106, 0.06);
    color: #333;
    height: auto;
    overflow: visible;
    width: auto;
}

#fep-content p,
#fep-content form {
    margin: 0 0 14px;
}

#fep-content hr {
    margin: 14px 0;
    border: 0;
    border-top: 1px solid #e6edf2;
}

#fep-content a {
    color: #0c5390;
    font-weight: 700;
    text-decoration: none;
}

#fep-content a:hover {
    color: #f99734;
    text-decoration: underline;
}

#fep-content small {
    font-size: 12px;
    color: #5f7282;
}

#fep-content img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

/* ============================================================
   FORMULARE (inputuri, textarea, butoane submit)
   ============================================================ */
#fep-content textarea,
#fep-content input[type=text],
#fep-content input[type=password],
#fep-content select,
.fep-form input[type="text"],
.fep-form textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #bcccdc;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(23, 63, 99, 0.05);
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    box-sizing: border-box;
}

#fep-content textarea,
.fep-form textarea {
    min-height: 220px;
    resize: vertical;
}

#fep-content textarea:focus,
#fep-content input[type=text]:focus,
#fep-content input[type=password]:focus,
#fep-content select:focus {
    border-color: #2e6f9c;
    box-shadow: 0 0 0 3px rgba(47, 98, 136, 0.14);
    outline: 0;
}

#fep-content input[type=submit],
#fep-content input[type=button],
#fep-content .button,
.fep-form input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #27597c;
    border-radius: 10px;
    background: linear-gradient(180deg, #4b8fbd 0%, #2f6288 100%);
    box-shadow: 0 10px 22px rgba(36, 84, 119, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ============================================================
   TABEL — lista de mesaje (inbox)
   ============================================================ */
.fep-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    overflow: hidden;
}

.fep-table > div > div {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #e6edf2;
    vertical-align: top;
    white-space: pre-line;
}

/* Headere tabel */
.fep-table .fep-table-caption {
    color: #0c5390;
    background: #f5f8fb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px;
    border-bottom: 1px solid #e6edf2;
}

/* ============================================================
   MESAJE INDIVIDUALE — thread / citire mesaj
   ============================================================ */
.fep-message .fep-message-title-heading,
.fep-per-message .fep-message-title {
    border: 1px solid #d9e3ea;
    border-radius: 12px;
    background: #f5f8fb;
    padding: 12px 14px;
    font-weight: 700;
    color: #0c5390;
    font-size: 16px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.fep-message .fep-message-title-heading {
    font-size: 20px;
    font-family: Georgia, serif;
    letter-spacing: -0.3px;
}

.fep-per-message {
    border: 1px solid #e6edf2;
    border-radius: 12px;
    margin: 0 0 10px;
    padding: 14px 16px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.fep-per-message:hover {
    box-shadow: 0 4px 12px rgba(32, 74, 106, 0.08);
}

.fep-per-message .fep-message-title .date {
    font-size: 12px;
    font-weight: normal;
    color: #5f7282;
}

/* ============================================================
   AVATARE
   ============================================================ */
.fep-avatar-p .fep-avatar-1,
.fep-avatar-p .fep-avatar-2,
.fep-avatar-more-60,
.fep-avatar-group-60 {
    border-radius: 999px;
    border: 1px solid #d9e3ea;
}

#fep-content .avatar {
    border-radius: 999px;
    border: 1px solid #d9e3ea;
}

/* ============================================================
   ATAȘAMENTE
   ============================================================ */
.fep-attachments {
    border-top: 1px solid #e6edf2;
    padding: 12px 0 0;
    margin-top: 14px;
}

.fep-attachments-heading {
    font-size: 14px;
    font-weight: 700;
    color: #0c5390;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================================
   CITEȘTE/BLOCKQUOTE
   ============================================================ */
#fep-content blockquote,
pre.code {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #d9e3ea;
    border-radius: 12px;
    background: #f6f9fc;
    color: #526679;
}

pre.code {
    overflow: auto;
    white-space: pre-wrap;
    font-size: 13px;
}

/* ============================================================
   PAGINARE
   ============================================================ */
.fep-pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 10px;
}

.fep-pagination > li > a,
.fep-pagination > li > span {
    background-color: #fff;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    color: #2f6288;
    float: left;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin-left: 4px;
    padding: 8px 14px;
    text-decoration: none;
}

.fep-pagination > li > a:hover,
.fep-pagination > li > span:hover {
    background-color: #f5f8fb;
    border-color: #bcccdc;
    color: #f99734;
}

.fep-pagination > .active > a,
.fep-pagination > .active > span,
.fep-pagination > .active > a:hover,
.fep-pagination > .active > span:hover {
    background: linear-gradient(180deg, #4b8fbd 0%, #2f6288 100%);
    border-color: #27597c;
    color: #fff;
    cursor: default;
}

.fep-pagination > .disabled > span,
.fep-pagination > .disabled > a {
    background-color: #f5f8fb;
    border-color: #d9e3ea;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ============================================================
   FOOTER
   ============================================================ */
#fep-footer {
    text-align: center;
    font-size: 11px;
    color: #6e8090;
    border: none;
    padding: 8px 0;
    width: auto;
}

#fep-footer a,
#fep-footer a:hover,
#fep-footer a:visited {
    color: #526679;
    text-decoration: none;
}

/* ============================================================
   AUTO-SUGGEST / SEARCH RESULTS
   ============================================================ */
#fep-result {
    width: min(320px, 100%);
    border: 1px solid #d9e3ea;
    border-radius: 12px;
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 14px 28px rgba(32, 74, 106, 0.14);
    overflow: hidden;
    z-index: 20;
}

#fep-result ul,
#fep-result li {
    padding: 0;
    margin: 0;
    border: 0;
    list-style: none;
}

#fep-result li + li {
    border-top: 1px solid #e6edf2;
}

#fep-result li a {
    display: block;
    padding: 10px 12px;
    color: #333;
    font-weight: 400;
    text-decoration: none;
}

#fep-result li a:hover {
    background: #f5f8fb;
    color: #f99734;
}

/* ============================================================
   UNREAD BADGE
   ============================================================ */
.fep-unread-class {
    background-color: #c0392b;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(192, 57, 43, 0.3);
    color: white;
    font-size: 9px;
    font-weight: bold;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
}

.fep-font-red {
    color: #c0392b;
}

/* ============================================================
   TOKEN INPUT (recipient field)
   ============================================================ */
ul.token-input-list-facebook {
    border: 1px solid #bcccdc !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(23, 63, 99, 0.05) !important;
    padding: 4px 8px !important;
    min-height: 44px !important;
}

li.token-input-token-facebook {
    background: linear-gradient(180deg, #4b8fbd 0%, #2f6288 100%) !important;
    border: 1px solid #27597c !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
}

li.token-input-token-facebook span {
    color: #fff !important;
}

li.token-input-token-facebook p {
    color: rgba(255,255,255,0.7) !important;
}

/* ============================================================
   LOADER
   ============================================================ */
.fep-loader {
    border-radius: 14px;
}

/* ============================================================
   SINGLE MESSAGE VIEW (sidebar + main)
   ============================================================ */
#fep-content-single #fep-content-single-sidebar {
    padding: 10px;
    border-right: 1px solid #e6edf2;
}

#fep-content-single-heads .fep-message-head-active {
    border-radius: 0px 12px 12px 0px;
    background: #f5f8fb;
}

/* ============================================================
   PROGRESS BAR (uploads)
   ============================================================ */
.fep-progress-bar {
    border-radius: 10px;
    overflow: hidden;
    background-color: #e6edf2;
}

.fep-progress-bar .fep-progress-bar-inner {
    background: linear-gradient(180deg, #4b8fbd 0%, #2f6288 100%);
    border-radius: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    #fep-header,
    #fep-content {
        padding: 16px;
        border-radius: 12px;
    }

    #fep-header strong {
        font-size: 24px;
    }

    #fep-menu .fep-button,
    .fep-button,
    .fep-button-active,
    #fep-content input[type=submit],
    #fep-content input[type=button],
    #fep-content .button {
        width: 100%;
    }
}
