/* Add Roboto font import at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

/* Force solid background for Notificaciones and Novedades buttons */
#notifications.btn-notification,
#novedades.btn-notification {
    background: #2c4b6d !important;
    color: #fff !important;
    border: none;
    padding: 6px 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 6px;
    min-width: 40px;
    text-align: center;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
}

/* Hover and active states */
#notifications.btn-notification:hover,
#novedades.btn-notification:hover,
.dropdown.open #notifications.btn-notification,
.dropdown.open #novedades.btn-notification,
#notifications.btn-notification:focus,
#novedades.btn-notification:focus {
    background: #24405a !important;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}

#notifications.btn-notification {
    background: #2c4b6d !important;
    color: #fff !important;
    border: none;
    padding: 6px 8px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 6px;
    min-width: 40px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    height: 32px;
    justify-content: flex-start;
    position: relative;
}

#notifications.btn-notification i.material-icons {
    font-size: 16px;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    vertical-align: middle;
}

.btn-notification {
    background: linear-gradient(90deg, #3d6691 0%, #064362 100%);
    color: #fff;
    border: none;
    padding: 8px 24px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 24px;
    min-width: 150px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(61, 102, 145, 0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    background-color: #3d6691;
}

.btn-notification:hover,
.dropdown.open .btn-notification,
.btn-notification:focus {
    background: linear-gradient(90deg, #2c4b6d 0%, #064362 100%);
    box-shadow: 0 4px 16px rgba(61, 102, 145, 0.15);
    color: #fff;
}

.dropdown {
    display: inline-block;
    position: relative !important; /* Change from absolute to relative */
    margin-right: 15px;          /* Add margin between menu items */
}

.dropdown-menu.notification-menu {
    background-color: #3d6691;
    min-width: 200px;
    margin-top: 5px;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Notification item layout */
.dropdown-menu.notification-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding: 12px 15px;
    transition: background-color 0.2s ease;
}

.dropdown-menu.notification-menu li a:hover {
    background-color: #2c4b6d;
    color: white;
}

/* Icon container with fixed width and position */
.dropdown-menu.notification-menu li a i.material-icons {
    font-size: 16px;
    position: relative;
    opacity: 0.9;
    display: inline-block;
    width: 32px;
    margin-left: -8px;
    margin-right: 0;
    text-align: left;
    flex-shrink: 0;
    padding-left: 8px;
}

/* Text container with fixed width */
.dropdown-menu.notification-menu li a .notification-text {
    flex-grow: 1;
    padding-left: 8px;
    min-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Remove margin-left from notification-text and span to avoid shifting */
.dropdown-menu.notification-menu li a span,
.dropdown-menu.notification-menu li a .notification-text {
    margin-left: 0;
}

.notification-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 16px;
    background: #2c4b6d;
    border-bottom: 1px solid #24405a;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-height: 40px;
    box-shadow: none;
    text-shadow: none;
}

.notification-header i.material-icons {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
    color: #fff;
    filter: none;
    position: relative;
    top: 0;
}

.notification-header span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.notification-header:hover {
    background: #34567a;
    color: #ffe082;
}

.close-menu {
    display: none;
}

.dropdown-menu.notification-menu li:not(.notification-header) {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu.notification-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu.notification-menu li:last-child a {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Notification badge for dropdown menu (red with blue border, top-right of icon) */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 14px;
    height: 14px;
    background: #e53935 !important;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #2c4b6d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    z-index: 2;
    display: inline-block;
    padding: 0;
    pointer-events: none;
    vertical-align: middle;
    /* Do NOT add margin or padding here */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Notification counters (JS-drawn) - red with blue border, small circle */
.counter,
.counter_diferencia_esquema,
.counter_pendiente_confirmar,
.counter_encuestas,
.counter_marcas_fuera {
    background-color: #e53935 !important;
    border: 1px solid #2c4b6d !important;
    color: #fff !important;
    border-radius: 50%;
    right: 10px;
    top: -9px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 13px;
    text-align: center;
    display: inline-block;
    padding: 0;
    position: relative;
    font-weight: bold;
    z-index: 9999 !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Icon in dropdown menu: ensure relative positioning for badge */
.dropdown-menu.notification-menu li a i.material-icons {
    font-size: 16px;
    position: relative;
    opacity: 0.9;
    display: inline-block;
}

/* Total notification counter position */
.notification-total {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    max-width: 18px;
    height: 18px;
    padding: 2px;
    background-color: #e53935;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #2c4b6d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    overflow: hidden;
}

.navbar-nav > li {
    position: relative;
    display: inline-block;
    padding-right: 15px;
}

.navbar-right {
    white-space: nowrap;
    display: flex;
    align-items: center;
}
