/* Global Snackbar Base */
#caawiye-snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s, visibility 0.3s;
}

#caawiye-snackbar.show {
    visibility: visible;
    opacity: 1;
    top: 40px;
}

#caawiye-snackbar.success {
    background-color: #10b981;
    /* Emerald 500 */
    color: #fff;
}

#caawiye-snackbar.error {
    background-color: #ef4444;
    /* Red 500 */
    color: #fff;
}

#caawiye-snackbar.info {
    background-color: #3b82f6;
    /* Blue 500 */
    color: #fff;
}

/* Dark mode overrides for snackbar */
.dark #caawiye-snackbar.success {
    background-color: #059669;
}

.dark #caawiye-snackbar.error {
    background-color: #dc2626;
}

.dark #caawiye-snackbar.info {
    background-color: #2563eb;
}

/* ── Widget & Footer Styling ──────────────────────── */
.widget-title,
.footer-widget h2,
.footer-widget h3 {
    color: #111827; /* Gray 900 */
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.dark .widget-title,
.dark .footer-widget h2,
.dark .footer-widget h3 {
    color: #ffffff;
}

/* Signature Underline Design */
.widget-title::after,
.footer-widget h2::after,
.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
}

.footer-widget a {
    color: #4b5563; /* Gray 600 */
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.925rem;
    font-weight: 500;
}

.dark .footer-widget a {
    color: #9ca3af; /* Gray 400 */
}

.footer-widget a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.reaction-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.reaction-widget:hover .reaction-dropdown,
.reaction-dropdown.touch-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: all .3s ease-in;
}

.reaction-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-reaction .reaction-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.total-reactions {
    font-size: 14px;
}

.reacted-users {
    display: flex;
    align-items: center;
}

.reacted-users .user-reaction-image {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -5px;
}

.reacted-users .user-reaction-image:first-child {
    margin-left: 0;
}

.reaction-dropdown {
    display: none;
    width: max-content;
    min-width: 200px;
    white-space: nowrap;
    position: absolute;
    bottom: calc(90% + 4px);
    left: 0;
    padding: 1px;
    border-radius: 8px;
    visibility: hidden;
    opacity: 0;
    z-index: 50;
    animation: fadeInLike .3s ease-in;
    transform: translateY(.5em);
    transition: all .3s ease-in;
}

.reaction-dropdown .reaction-list {
    display: flex;
    gap: 5px;
    align-items: center;
}

.reaction-dropdown .reaction-item {
    cursor: pointer;
}

.reaction-dropdown .reaction-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.reaction-widget:hover .reaction-dropdown,
.reaction-dropdown:hover {
    display: block;
}

.activity-reaction-widget:hover .reaction-dropdown {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: all .3s ease-in;
    animation: fadeInLike .3s ease-in;
}

#custom-loginform p {
    margin-bottom: 1.5rem;
}

#custom-loginform label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dark #custom-loginform label {
    color: #d1d5db;
}

#custom-loginform input[type="text"],
#custom-loginform input[type="password"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    outline: none;
    background: #f9fafb;
    font-size: 1rem;
}

.dark #custom-loginform input[type="text"],
.dark #custom-loginform input[type="password"] {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

/* FLEX ROW LOGIC */
.login-form-wrapper {
    position: relative;
}

#custom-loginform .forgetmenot {
    float: none;
    margin: 0;
}

#custom-loginform .forgetmenot label {
    margin-bottom: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4b5563;
}

.dark #custom-loginform .forgetmenot label {
    color: #9ca3af;
}

#custom-loginform .forgetmenot input[type="checkbox"] {
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border-color: #d1d5db;
    color: #0ea5e9;
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}

/* Target the Forgot Password link to sit on the right of the checkbox */
.lost-pass-inline {
    position: absolute;
    right: 0;
    bottom: 74px;
    /* Adjusted based on standard wp_login_form output */
    font-size: 0.875rem;
    font-weight: 600;
    color: #0ea5e9;
    z-index: 20;
}

.lost-pass-inline:hover {
    color: #0284c7;
}

#custom-loginform .submit {
    float: none;
    width: 100%;
    margin-top: 1rem;
}

#custom-loginform input[type="submit"] {
    width: 100%;
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

#custom-loginform input[type="submit"]:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}