/**
 * Authentication UI Styles
 * WebAuthn passkey login/register styling
 * Styled to match toolbar menu items
 */

/* Workflow List Modal Styles */
.workflow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.workflow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.workflow-item:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
}

.workflow-info {
    flex: 1;
}

.workflow-name {
    font-size: 16px;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 5px;
}

.workflow-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.workflow-desc {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin-top: 5px;
}

.workflow-actions {
    display: flex;
    gap: 8px;
}

.workflow-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-load {
    background: linear-gradient(145deg, #00ffff, #00cccc);
    color: #000;
}

.btn-load:hover {
    background: linear-gradient(145deg, #00cccc, #0099ff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.btn-delete {
    background: linear-gradient(145deg, #ff4444, #cc0000);
    color: #fff;
}

.btn-delete:hover {
    background: linear-gradient(145deg, #ff6666, #ff0000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Account menu title when logged in */
#account-menu-item.menu-item {
    position: relative;
}

/* Menu hints (small descriptive text) */
.menu-hint {
    font-size: 11px;
    color: #888;
    font-weight: normal;
}

/* User info option styling */
.user-info-option .menu-hint {
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Auth Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Auth Modal */
.auth-modal,
.auth-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 255, 255, 0.2),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) translateZ(0);
        opacity: 0;
    }
    to {
        transform: translateY(0) translateZ(0);
        opacity: 1;
    }
}

.auth-modal-header {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.auth-modal-header h2 {
    color: #00ffff;
    margin: 0;
    font-size: 20px;
}

.auth-modal-body {
    padding: 25px;
}

.auth-modal-body p {
    color: #ccc;
    line-height: 1.6;
    margin: 10px 0;
}

.user-id-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    margin: 15px 0;
}

.user-id-display code {
    flex: 1;
    color: #00ffff;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.warning-text {
    color: #ff9966 !important;
    font-weight: 500;
    background: rgba(255, 153, 102, 0.1);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ff9966;
}

.info-text {
    color: #88ccff !important;
    font-size: 13px;
    background: rgba(136, 204, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #88ccff;
}

.auth-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 0 10px;
    }
    
    .auth-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .user-badge {
        font-size: 12px;
    }
    
    .auth-modal {
        width: 95%;
        max-width: none;
    }
}

/* Profile Modal Styles */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.profile-value {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border: 1px solid #333;
    border-radius: 6px;
    color: #00ffff;
    font-size: 14px;
}

.profile-value code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.copy-button {
    padding: 6px 12px;
    background: linear-gradient(145deg, #00ffff, #00cccc);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: linear-gradient(145deg, #00cccc, #0099ff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.profile-value-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border: 1px solid #333;
    border-radius: 6px;
}

.profile-email-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 12px;
    color: #666;
    font-size: 14px;
    font-family: inherit;
}

.profile-email-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.field-status {
    font-size: 12px;
    color: #888;
    font-style: italic;
    white-space: nowrap;
}
