/* Custom Dialog CSS */
.bob-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bob-dialog-overlay.show {
    opacity: 1;
}

.bob-dialog-container {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius, 14px);
    box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.12));
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.bob-dialog-overlay.show .bob-dialog-container {
    transform: scale(1);
}

.bob-dialog-header {
    padding: 20px 24px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bob-dialog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-brown, #30231B);
}

.bob-dialog-body {
    padding: 10px 24px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.bob-dialog-footer {
    padding: 16px 24px;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.bob-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bob-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.bob-btn-cancel:hover {
    background: #d1d5db;
}

.bob-btn-confirm {
    background: var(--primary-orange, #FF5117);
    color: #ffffff;
}

.bob-btn-confirm:hover {
    background: #e64100;
    box-shadow: 0 4px 12px rgba(255, 81, 23, 0.2);
}

/* Icon Styles */
.bob-dialog-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.bob-dialog-icon.info { background: #e0f2fe; color: #0369a1; }
.bob-dialog-icon.warn { background: #ffedd5; color: #9a3412; }
.bob-dialog-icon.error { background: #fee2e2; color: #b91c1c; }

/* Prompt Input Style */
.bob-dialog-input {
    width: 100%;
    margin-top: 15px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    transition: all 0.2s;
    outline: none;
}

.bob-dialog-input:focus {
    border-color: var(--primary-orange, #FF5117);
    box-shadow: 0 0 0 3px rgba(255, 81, 23, 0.1);
}

/* =============================
   세션 만료 재로그인 팝업
   ============================= */
.relogin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.relogin-container {
    background: #ffffff;
    width: 360px;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.relogin-overlay.show .relogin-container {
    transform: scale(1) translateY(0);
}

.relogin-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.relogin-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF1EB 0%, #FFE4D4 100%);
    color: #e64100;
    flex-shrink: 0;
}

.relogin-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.3px;
}

.relogin-body {
    padding: 16px 24px 24px;
}

.relogin-desc {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.relogin-input-group {
    margin-bottom: 14px;
}

.relogin-input-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.relogin-input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #fafafa;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.relogin-input-group input:focus {
    border-color: var(--primary-orange, #FF5117);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 81, 23, 0.08);
}

.relogin-input-group input::placeholder {
    color: #9ca3af;
}

.relogin-error {
    font-size: 13px;
    color: #dc2626;
    min-height: 20px;
    line-height: 20px;
    padding: 0 2px;
    margin-bottom: 4px;
}

.relogin-footer {
    display: flex;
    gap: 10px;
    padding-top: 6px;
}

.relogin-footer .bob-btn {
    flex: 1;
    padding: 11px 0;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.relogin-footer .bob-btn-confirm {
    background: linear-gradient(135deg, #FF5117 0%, #FF6B35 100%);
    box-shadow: 0 4px 14px rgba(255, 81, 23, 0.3);
}

.relogin-footer .bob-btn-confirm:hover {
    background: linear-gradient(135deg, #e64100 0%, #FF5117 100%);
    box-shadow: 0 6px 20px rgba(255, 81, 23, 0.4);
    transform: translateY(-1px);
}

.relogin-footer .bob-btn-confirm:active {
    transform: translateY(0);
}

/* 로그인 중 상태 */
.relogin-footer .bob-btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
