/* ============================================
   Toast Notifications
   ============================================ */
.toast-notification {
    position: fixed;
    top: 30px;
    right: -400px;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(0, 238, 255, 0.1);
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Poppins', sans-serif;
}

.toast-notification.toast-show {
    right: 30px;
}

.toast-notification i:first-child {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-notification span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.toast-close {
    font-size: 20px !important;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    color: #fff !important;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Toast Types */
.toast-success {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 200, 83, 0.05));
    border-color: rgba(0, 200, 83, 0.3);
}
.toast-success i:first-child { color: #00c853; }

.toast-error {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.2), rgba(255, 82, 82, 0.05));
    border-color: rgba(255, 82, 82, 0.3);
}
.toast-error i:first-child { color: #ff5252; }

.toast-warning {
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.2), rgba(255, 171, 0, 0.05));
    border-color: rgba(255, 171, 0, 0.3);
}
.toast-warning i:first-child { color: #ffab00; }

.toast-info {
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.2), rgba(0, 238, 255, 0.05));
    border-color: rgba(0, 238, 255, 0.3);
}
.toast-info i:first-child { color: #0ef; }

/* ============================================
   Email Confirmation Modal
   ============================================ */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.confirm-overlay.confirm-show {
    opacity: 1;
}

.confirm-modal {
    background: linear-gradient(145deg, #0a1628, #0d2137);
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(0, 238, 255, 0.15);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;
}

.confirm-show .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.15), rgba(0, 238, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 238, 255, 0.3);
}

.confirm-icon i {
    font-size: 42px;
    color: #0ef;
}

.confirm-modal h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 700;
}

.confirm-modal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.confirm-email {
    background: rgba(0, 238, 255, 0.08);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    margin: 15px 0;
    color: #0ef;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.confirm-sub {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 13px !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
}

.confirm-btn {
    background: linear-gradient(135deg, #0ef, #00b4d8);
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    color: #081b29;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.3);
}

.confirm-btn i {
    font-size: 20px;
}

/* ============================================
   Profile Dropdown (for index.html navbar)
   ============================================ */
.profile-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.15), rgba(119, 45, 255, 0.15));
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-btn:hover {
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.25), rgba(119, 45, 255, 0.25));
    box-shadow: 0 5px 20px rgba(0, 238, 255, 0.2);
    transform: translateY(-1px);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0ef, #772dff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.profile-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-type {
    font-size: 11px;
    color: #0ef;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(145deg, #0a1628, #0d2137);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.dropdown-header .dh-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.dropdown-header .dh-email {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 2px;
    word-break: break-all;
}

.dropdown-header .dh-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dh-badge.client {
    background: rgba(0, 238, 255, 0.12);
    color: #0ef;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.dh-badge.worker {
    background: rgba(119, 45, 255, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(119, 45, 255, 0.2);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-item i {
    font-size: 18px;
    color: #0ef;
    width: 22px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.dropdown-item.logout {
    color: #ff5252;
}

.dropdown-item.logout i {
    color: #ff5252;
}

/* ============================================
   Access Denied Overlay (for post.html)
   ============================================ */
.access-denied-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    font-family: 'Poppins', sans-serif;
}

.access-denied-card {
    background: linear-gradient(145deg, #0a1628, #0d2137);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(255, 82, 82, 0.1);
    animation: cardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.access-denied-card .ad-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 82, 82, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 82, 82, 0.3);
}

.access-denied-card .ad-icon i {
    font-size: 36px;
    color: #ff5252;
}

.access-denied-card h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.access-denied-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    border: none;
    margin: 8px 5px;
    min-width: 140px;
}

.ad-btn:hover {
    transform: translateY(-2px);
}

.ad-btn.primary {
    background: linear-gradient(135deg, #0ef, #00b4d8);
    color: #081b29;
}

.ad-btn.primary:hover {
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.3);
}

.ad-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ad-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Loading spinner for buttons */
.bx-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
