div#login {
    background: linear-gradient(rgb(35 35 125) 35%, rgb(11 132 156) 100%);
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
}
.alert.alert-success.col-md-12.col-lg-12 {
    display: block !important;
    padding: 10px;
    margin: 10px;
    width: auto !important;
}

.alert.alert-success.col-md-12.col-lg-12 p {
    margin: auto;
}

#login .container {
    margin: auto;
    min-height: 300px;
    background: white;
    max-width: 500px;
}

#login .logo {
    text-align: center;
}

#login .logo img {
    height: 150px;
    margin: 1em 0;
}

#login .form-group.row {
    display: block;
}

#login label {
    display: block !important;
    text-align: left !important;
    font-weight: bold;
    max-width: none;
}   

#login .col-md-6 {
    max-width: none;
}

#login .col-md-6.offset-md-4 {
    margin: 0px !important;
}

#login .col-md-8.offset-md-4 {
    margin: 0;
    max-width: none !important;
    display: block;
    text-align: center;
}

#login button.btn.btn-primary {
    width: 100%;
}

#login a.btn.btn-link {
    display: block;
    margin: 1em;
}

.action-button {
    margin-bottom: 1em;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-front {
    background-color: #bbb;
    color: black;
  }
  
  .flip-card-back {
    background-color: #2980b9;
    color: white;
    transform: rotateY(180deg);
  }
  
  .carousel-fill {
    height: -o-calc(100vh - 165px) !important;
    height: -webkit-calc(100vh - 165px) !important;
    height: -moz-calc(100vh - 165px) !important;
    height: calc(100vh - 165px) !important;
    width: auto !important;
    overflow: hidden;
    display: inline-block;
    text-align: center;
}

.carousel-item {
    text-align: center !important;
}

div#notifcation_container .dropdown-menu-header {
    text-align: left;
    border: 0px !important;
    padding: 22px 22px 8px;
}

div#notifcation_container {
    right: -112px !important;
    top: calc(100% + 12px) !important;
    width: min(360px, calc(100vw - 24px));
    min-width: 300px;
    max-width: calc(100vw - 24px);
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 60px rgba(16, 41, 73, 0.24);
}

.notification-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

div#notifcation_container .dropdown-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #18384f;
}

.notification-heading p {
    margin: 0;
    font-size: 12px;
    color: #7a8ca1;
}

.notification-filter button {
    min-width: 90px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #eef2f7;
    color: #536579;
    font-size: 14px;
    font-weight: 600;
    border: 0;
    box-shadow: none !important;
}

.notification-filter {
    display: flex;
    gap: 10px;
    padding: 6px 22px 16px;
}

.notification-filter .notification-btn.active {
    background: linear-gradient(135deg, #448dff 0%, #2d6be9 100%);
    color: #fff;
}

.notif-img {
    width: 44px;
    height: 44px;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(18, 43, 71, 0.14);
    flex: 0 0 44px;
}

a.list-group-item.notification-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-top: 1px solid #eef2f7;
    background: #fff;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a.list-group-item.notification-entry:hover {
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(69, 126, 232, 0.08);
}

.notification-entry__avatar {
    flex: 0 0 44px;
}

.notification-entry__body {
    min-width: 0;
    flex: 1 1 auto;
}

.notification-entry__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.notification-sender {
    font-size: 13px;
    font-weight: 700;
    color: #1b2d42;
    line-height: 1.3;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d6be9;
    flex: 0 0 8px;
    box-shadow: 0 0 0 4px rgba(45, 107, 233, 0.12);
}

a.list-group-item.notification-empty {
    padding: 24px;
    text-align: center;
    background: #fff;
    border: 0;
}

.notif-title {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.35;
    font-size: 13px;
    font-weight: 600;
    color: #33475b;
    margin-bottom: 4px;
    word-break: break-word;
}

.notif-time {
    font-size: 12px;
    color: #7b8a9a;
    margin-top: 8px;
}

.notif-details {
    font-size: 12px;
    line-height: 1.45;
    color: #5f6b7a !important;
    margin-top: 4px;
    word-break: break-word;
    font-weight: 400;
}

.notif-meta {
    font-size: 12px;
    line-height: 1.4;
    color: #7b8a9a;
    margin-top: 6px;
}

.notification-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e9f1ff;
    color: #2d6be9;
    font-size: 11px;
    font-weight: 700;
}

div#notifcation_container .list-group {
    max-height: min(58vh, 500px);
    overflow: auto;
    background: #fff;
}

span.count-notif {
    font-size: 10px;
    background: linear-gradient(180deg, #ff6b81 0%, #e53e5d 100%);
    padding: 0px;
    min-width: 18px;
    height: 18px;
    position: absolute;
    line-height: 18px;
    display: none;
    text-align: center;
    border-radius: 50%;
    margin-left: -6px;
    margin-top: 21px;
    font-weight: bold;
    z-index: 1;
    color: #fff;
    box-shadow: 0 6px 14px rgba(229, 62, 93, 0.3);
}

.view-1 {
    background: #f8fafc !important;
}

.view-0 {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.view-0 .notif-title,
.view-0 .notification-sender {
    color: #173154;
}

.view-0 .notif-time,
.view-0 .notif-details,
.view-0 .notif-meta {
    color: #4f6277 !important;
}

div#notifcation_container .dropdown-menu-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #eef2f7;
    background: #fff;
    text-align: center;
}

.notification-footer-link,
#mark_all_notifications_read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    background: #f3f7fb;
    font-size: 13px;
    font-weight: 600;
    color: #587497 !important;
    text-decoration: none;
}

#mark_all_notifications_read:hover {
    color: #2d6be9 !important;
    background: #eaf2ff;
}

@media screen and (max-width: 767px) {
    div#notifcation_container {
        right: -94px !important;
        min-width: 0;
        width: min(340px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        border-radius: 20px;
    }

    div#notifcation_container .dropdown-menu-header {
        padding: 18px 16px 8px;
    }

    .notification-filter {
        padding: 6px 16px 14px;
    }

    a.list-group-item.notification-entry {
        padding: 14px 16px;
        gap: 10px;
    }

    .notif-img,
    .notification-entry__avatar {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .notif-title {
        font-size: 14px;
    }

    .notif-details,
    .notif-time,
    .notif-meta {
        font-size: 12px;
    }
}
